Swiftpack.co - vivalalova/PageTabView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vivalalova.
vivalalova/PageTabView 0.2.0
SwiftUI
⭐️ 0
🕓 50 weeks ago
iOS macOS
.package(url: "https://github.com/vivalalova/PageTabView.git", from: "0.2.0")

PageTab

Page Tab

111

Usage

PageTabView {
    Text("Page1").foregroundColor(.red)
    Text("Page2").foregroundColor(.green)
} content: {
    List {
        Text("Page 1")

        Button("Green") {
            pageModel.scrollTo(page: 1)
        }
        .accentColor(.blue)
    }.edgesIgnoringSafeArea(.bottom)

    VStack {
        Text("Page 1")
        Button("Red") {
            pageModel.scrollTo(page: 0)
        }
        .accentColor(.blue)
    }
}
.environmentObject(pageModel)
.accentColor(.purple)

GitHub

link
Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics