Skip to content

OpenToss/OpenTDS-SwiftUI

Repository files navigation

OpenTDS OpenTDS

Swift Platforms Swift Package Manager

"Proof that Toss can be migrated to SwiftUI"

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

import OpenTDS

TossButton

Animated Button of Toss.

TossButton(action: {
    anyMethod()
}) {
    Text("Button")
        .padding()
}

TossTabView

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"))
}

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.

About

OpenTDS is Toss Design System Clone for SwiftUI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages