/OpenTDS

OpenTDS is Toss Design System Clone for SwiftUI

Primary LanguageSwiftMIT LicenseMIT

OpenTDS OpenTDS

Swift Platforms Swift Package Manager

OpenTDS is Toss Design System Clone for SwiftUI.

Requirements

Platform Minimum Swift Version Installation
iOS 14.0+ / macOS 10.11+ 5.5 Swift Package Manager

Disclaimer

This package is unfinished and not ready for deployment.

Installation

Swift Package Manager

  • File -> Add Packages... And paste the repository URL.
  • Or add it to the dependencies value of your Package.swift.
dependencies: [
    .package(url: "https://github.com/Mercen-Lee/OpenTDS.git", .branch("main"))
]

Components

Examples

TossTabView

Animated Tab View of Toss.

  • The number of Views must be between 2 and 5.
  • Every single View should have .tossTabItem Modifier.
TossTabView {
    HomeView()
        .tossTabItem("Home", Image(systemName: "house.fill"))
    MyView()
        .tossTabItem("My", Image(systemName: "person.fill"))
}

TossTabViewButton

Animated Tab View Button of Toss.

  • It exists for TossTabView.
TossTabViewButton("Home", Image(systemName: "house.fill"), true) {
    anyMethod()
}

TossScrollView

Dynamic Scroll View of Toss.

  • Title string is necessary.
TossScrollView("Title") {
    AnyView()
}

Credits

All credit related to the design goes to the Toss Team.