"Proof that Toss can be migrated to SwiftUI"
OpenTDS is Toss Design System Clone for SwiftUI.
Platform | Minimum Swift Version | Installation |
---|---|---|
iOS 14.0+ / macOS 10.11+ | 5.5 | Swift Package Manager |
This package is unfinished and not ready for deployment.
File
->Add Packages...
And paste the repository URL.- Or add it to the
dependencies
value of yourPackage.swift
.
dependencies: [
.package(url: "https://github.com/Mercen-Lee/OpenTDS.git", .branch("main"))
]
import OpenTDS
Animated Button of Toss.
TossButton(action: {
anyMethod()
}) {
Text("Button")
.padding()
}
Animated Tab View of Toss.
- Between 2 and 5 Views are recommended.
- Every single View should have
.tossTabItem
Modifier.
TossTabView {
HomeView()
.tossTabItem("Home", Image(systemName: "house.fill"))
MyView()
.tossTabItem("My", Image(systemName: "person.fill"))
}
Animated Tab View Button of Toss.
- It exists for TossTabView.
TossTabViewButton("Home", Image(systemName: "house.fill"), true) {
anyMethod()
}
Dynamic Scroll View of Toss.
- Title string is necessary.
TossScrollView("Title") {
AnyView()
}
All credit related to the design goes to the Toss Team.