a native ios client for gitbay

client ios swift

https://gitbay.org

gitbay/gitbayApp.swift

ui-smoke
gitbay-ios/gitbay/gitbayApp.swift history · blame · raw

25 lines · 637 bytes

 1import SwiftUI
 2
 3@main
 4struct gitbayApp: App {
 5
 6    @State private var session = SessionStore()
 7
 8    init() {
 9        GitbayFonts.register()
10    }
11
12    var body: some Scene {
13        WindowGroup {
14            ContentView()
15                .environment(session)
16                .font(.gbSans(.body))
17                .tint(.gbAccent)
18                // The screenshot checkpoint forces appearance per run;
19                // simulator clones ignore the base device's setting.
20                .preferredColorScheme(
21                    ProcessInfo.processInfo.arguments.contains("-gb-dark") ? .dark : nil
22                )
23        }
24    }
25}