Skip to content

charming-whaley/SnackUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnackUI

SnackUI is an open-source library of modern UI components written in SwiftUI

Quick start

Clone the repo to your project via Swift Package Manager and voilà!

https://github.com/charming-whaley/SnackUI.git

Usage

SnackUI's compact syntax and extensive components set allow to build great-looking designs in SwiftUI

import SnackUI

struct ContentView: View {
    var body: some View {
        SnackButton(withTitle: "Tap on me!", ofColor: .blue, AndSize: .large, withRadiusOf: 20) {
            Task {
                await greet()
            }
        }
    }
    
    @MainActor
    private func greet() async {
        print("Hi!")
    }
}

About

A library of modern UI components written in SwiftUI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages