
Liquid Onboarding Pager
A paging onboarding whose background blob morphs shape and blends color in proportion to your swipe, with a gooey page indicator that slides along. Each SF Symbol illustration assembles with staggered springs as its page settles, and the button morphs into Get started on the last page.
- screen
- gesture
- animation
snippet.swift480 lines
9 files • Scroll to see all →
/// One onboarding page. The illustration is built from SF Symbols: a hero symbol/// on a plate, with up to three satellite symbols that fly in around it.public struct LiquidOnboardingPage: Identifiable, Hashable { public let id = UUID() let title: String let subtitle: String let symbol: String let satellites: [String] /// Main blob color; also tints the button and page indicator. let tint: Color /// Secondary glow blended into the blob. let glow: Color public init(title: String, subtitle: String, symbol: String, satellites: [String] = [], tint: Color, glow: Color) { self.title = title self.subtitle = subtitle self.symbol = symbol self.satellites = Array(satellites.prefix(3)) self.tint = tint self.glow = glow// ... (click "Show full code" to see more)Viewing: Model.swift•1 of 9