Skip to content

javff/JKUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JKUI

JKUI is a package included in this project that provides UIComponents.

Before you start to use.

JKUI uses a style themed setting that must be initialized.

How to init

You must create a class that complies with the following protocol ThemeColorTemplate, and another class that following ThemeFontTemplate protocol.

final class ThemeColor: ThemeColorTemplate {
    public let acent: Color = Color(hex: "#3483FA")
 }

final class ThemeFont: ThemeFontTemplate {
    public var titleL: Font = .system(size: 16)
    ...
}

And configure the ThemeManager

@main
struct JJUITestAppApp: App {
    
    var body: some Scene {
        let themeColor = ThemeColor()
        let themeFont = ThemeFont()
        let theme = ThemeConfiguration(color: themeColor, font: themeFont)
        ThemeManager.configure(theme: theme)
        return WindowGroup {
            ContentView()
              
        }
    }
}

List of components

MainButton

This UIComponents represent a button with standard look and feel. Full Description how to use

ProgressIndicator

Gallery

About

A UI suite of components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages