8000 GitHub - 0xLeif/EUI-POC: POC of EUI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

0xLeif/EUI-POC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EUI-POC

POC of EUI

Example App

import EUI
import SwiftUI
import ScreenData

@main
struct EUI_POCApp: App {
    var body: some Scene {
        EUIAppScene(
            app: EUIApp(
                launchScreen: EUIScreen(
                    id: "launch",
                    title: "Launch Screen!",
                    backgroundColor: .green,
                    headerView: nil,
                    bodyView: .button(SomeButton(title: "Loading", actionID: "print"))
                ),
                initialScreen: EUIScreen(
                    id: "initial",
                    title: "Initial Screen!",
                    backgroundColor: .green,
                    headerView: nil,
                    bodyView: .button(SomeButton(title: "Hello World!", actionID: "print")),
                    footerView: .label(
                        SomeLabel(
                            title: "Some Footer Label",
                            font: .title,
                            destination: Destination(type: .screen, toID: "another")
                        )
                    )
                ),
                screens: [
                    EUIScreen(
                        id: "another",
                        title: "Another Screen!",
                        backgroundColor: .green,
                        bodyView: .button(SomeButton(title: "Hello World?"))
                    )
                ],
                actions: [
                    EUIAction(id: "print", action: .complete(.void { print("Hello, World!")}))
                ],
                fonts: EUIFonts(
                    largeTitle: nil,
                    title: .footnote,
                    headline: nil,
                    body: nil,
                    footnote: nil,
                    caption: nil
                )
            )
        )
    }
}

Example Images

Initial

init

Another

another

About

POC of EUI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

0