iPagesπ
Quickly implement swipable page views in iOS. π
Get Started | Examples | Customize | Install |
Get Started
Install
iPages
Add
iPages
to your project
import SwiftUI
import iPages
struct ContentView: View {
var body: some View {
iPages {
Text("iPages π€")
Color.pink
}
}
}
- Customize your
iPages
Examples
Marketing Materials πΈ
Use iGraphicsView
to demo marketing slides.
import SwiftUI
import iPages
import iGraphics
struct ContentView: View {
var body: some View {
iPages {
iGraphicsView(.first)
iGraphicsView(.second)
iGraphicsView(.third)
}
}
}
Shopping App π
If you want, you can pass in your own optional selection binding to iPages. Hide the bottom dots & add infinite scroll to remove context.
import SwiftUI
import iPages
import iGraphics
struct ContentView: View {
@State var currentPage: Int = 0
var body: some View {
iPages(selection: $currentPage) {
iGraphicsBox(.photo)
.stack(3)
iGraphicsBox(.card)
.stack(2)
}
.hideDots(true)
.wraps(true)
}
}
Install
Use the Swift package manager to install. Find instructions hereπ