Giter Site home page Giter Site logo

soltrinox / fabulaitemsprovider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasudev/fabulaitemsprovider

0.0 2.0 0.0 9.13 MB

You can share and communicate with developers around the world through the Fabula app.

Home Page: https://apps.apple.com/app/id1591155142

License: MIT License

Swift 100.00%

fabulaitemsprovider's Introduction

FabulaItemsProvider for SwiftUI

This is the source package for the Fabula project.
You can share and communicate with developers around the world through the Fabula app.

Platforms iOS macOS Fabula App instagram SPM MIT

Screenshot

Structure

Workflow

How developers participate.

  1. Add items to the FabulaItemsProvider

    import SwiftUI
    
    public struct P1000_Example: View {
    
        public init() {}
        public var body: some View {
            VStack {
                ExampleSubView1()
                ExampleSubView2()
            }
        }
    }
    
    fileprivate
    struct ExampleSubView1: View {
        var body: some View {
            Text("Hello, World!")
        }
    }
    
    fileprivate
    struct ExampleSubView2: View {
        var body: some View {
            Text("Hello, Fabula!")
        }
    }
    
    struct P1000_Example_Previews: PreviewProvider {
        static var previews: some View {
            P1000_Example()
        }
    }
  2. Add ItemData to ItemsProvider

    import SwiftUI
    
    public class ItemsProvider {
        ...
        public var items: [ItemData] {
            [
                ItemData(id: 1000, category: .study,
                         section: "Section name",
                         createDate: "2022-01-07",
                         title: "Title",
                         caption: "Caption",
                         creator: "Your name",
                         tags: "Search tags",
                         view: FAnyView(P1000_Example())),
                ...
            ]
        }
    }
  3. Build test with FabulaPlus app.

  4. Pull Request

  5. Merge & Update Fabula app

Color style

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, adding FabulaItemsProvider as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/jasudev/FabulaItemsProvider.git", .branch("main"))
]

Notice

Resource data cannot be included for package capacity management.

Contact

instagram : @dev.fabula
email : [email protected]

License

FabulaItemsProvider is available under the MIT license. See the LICENSE file for more info.

fabulaitemsprovider's People

Contributors

jasudev avatar tgeisse avatar soccer001 avatar tkgka avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.