A custom TabView in SwiftUI
FloatingTabView is a very lightweight custom TabView in SwiftUI.
The differences between it and the other Custom TabView are:
FloatingTabView follows the standard TabView API. You can integrate it with very few lines of code:
FloatingTabView is lightweight: it is written in less than 200 lines of code.
You can simply install the framework using the following url to add the Swift Package
https://github.com/Gioevi90/FloatingTabView.git
Then you can import the framework using the command
import FloatingTabView
The code is really simple: you just have to embed you views into the FloatingTabViewItem passing the systemImage name you want to use to the initializer.
Here's a sample
import SwiftUI
import FloatingTabView
struct ContentView: View {
var body: some View {
FloatingTabView {
FloatingTabViewItem(image: "house.circle") {
Color.blue
}
FloatingTabViewItem(image: "square.and.arrow.up.circle") {
ZStack {
Color.blue
Text("Fantastic share View")
.foregroundColor(.white)
}
}
}
}
}
link |
Stars: 0 |
Last commit: 2 years ago |
First version
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics