Skip to content
プロジェクト

jasudev/FabulaItemsProvider

GitHubで見る

概要

Fabulaアプリを通じて、世界中の開発者と共有したり交流したりできます。

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
-1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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.

関連プロジェクトを探す

読み込み中…