Skip to content

0xLeif/EUI.num

Repository files navigation

EUI.num

E.num & ScreenData

EUIAppScene

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 Project

EUI-POC