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 1.0.1
SwiftUI
⭐️ 0
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/vivalalova/PageTabView.git", from: "1.0.1")

PageTab

Page Tab

111

Usage

PageTabView {    
    List {
        Text("Page 1")

        Button("Green") {
            pageModel.scrollTo(page: 1)
        }
        .accentColor(.blue)
    }
    .edgesIgnoringSafeArea(.bottom)
    .pageTitleView {
        Text("Page1").foregroundColor(.red)
    }

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

GitHub

link
Stars: 0
Last commit: 50 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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