- July 29, 2025
- Mins Read
View
‘s descendant class for your pages.
struct ContentView: View {
var body: some View {
return ConcentricOnboardingView(pageContents: [<your_page>, <your_background_color>])
}
}
ConcentricOnboardingView(pageContents: [<your_page>, <your_background_color>])
.(duration: 2.0)
ConcentricOnboardingView(pageContents: [<your_page>, <your_background_color>])
.(nextIcon: “chevron.forward”)
goToNextPage(animated: Bool = true)
– call this method manually if you need to
goToPreviousPage(animated: Bool = true)
– call this method manually if you need to
.animationWillBegin
– called before animation starts
.animationDidEnd
– called after animation ends
.didGoToLastPage
– called after animation leading to last page ends
.didChangeCurrentPage
– called after page changes
.insteadOfCyclingToFirstPage
– replaces default navigation to first page after pressing next on last page
.insteadOfCyclingToLastPage
– replaces default navigation to last page after pressing prev on first page while navigating backwards
.didPressNextButton
– replaces default button action with user’s custom closure
To try the ConcentricOnboarding examples:
https://github.com/exyte/ConcentricOnboarding.git
ConcentricOnboardingExample.xcodeproj
in the Xcode
dependencies: [
.package(url: “https://github.com/exyte/ConcentricOnboarding.git”)
]
iOS 14+
Xcode 12+
Many thanks to Cuberto team for the design idea and inspiration.
1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...
1. Creating Your Own Structs In Swift, a struct is a value type that you define with the struct keyword. ...
1. Trailing Closure Syntax When the last parameter to a function is a closure, you can write that closure after ...
1. What Is a Closure (and Why Swift Loves Them) A closure in Swift is a self-contained block of functionality ...
1. Providing Default Values for Function Parameters (Deep Dive) 1.1 Syntax and Ordering Declaration You assign a default right in ...