Floating Action Button(FAB) with SwiftUI
SwiftUI-FAB (Floating Action Button)
Floating Action Button(FAB) with SwiftUI.
Install
SwiftPM
https://github.com/karamage/SwiftUI-FAB.git
Usage
import SwiftUIimport SwiftUI_FABstruct 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) } }}