8000 GitHub - karamage/SwiftUI-FAB: Floating Action Button(FAB) with SwiftUI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

karamage/SwiftUI-FAB

Repository files navigation

SwiftUI-FAB (Floating Action Button)

CI Release License Twitter

Floating Action Button(FAB) with SwiftUI.

Install

SwiftPM

https://github.com/karamage/SwiftUI-FAB.git

Usage

import SwiftUI
import SwiftUI_FAB

struct ExampleScreen: View {
    var body: some View {
        NavigationView {
            VStack {
                Text("Floating Action Button(FAB) with SwiftUI")
            }
            .floatingActionButton(color: Color.blue, image: Image(systemName: "plus").foregroundColor(.white)) {
                // action
                print("Tap Button")
            }
            .navigationTitle("Sample")
            .navigationBarTitleDisplayMode(.inline)
        }
    }
}

About

Floating Action Button(FAB) with SwiftUI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0