
Mesh Wordmark Intro
An intro over a drifting MeshGradient where the wordmark's letters rise in one by one with blur, offset and a haptic tick each. A tagline fades up, then the screen parts like a curtain (or zooms through) to hand off to your app.
- screen
- gradient
- transition
snippet.swift218 lines
4 files • Scroll to see all →
/// How the intro hands off to the content once the wordmark has played.public enum MeshWordmarkIntroHandoff: String, CaseIterable, Identifiable { /// The screen splits down the middle and both halves slide away. case curtain /// The wordmark rushes toward the viewer and dissolves. case zoom public var id: String { rawValue }}/// An app intro over a slowly drifting `MeshGradient`. The wordmark's letters/// rise in one by one (offset + blur + opacity, with a light haptic tick each),/// the tagline fades up, then the intro hands off to your content with either a/// curtain (the screen splits down the middle and parts) or a zoom-through.////// Plays once per view identity; give it a new `.id` to replay.public struct MeshWordmarkIntro<Content: View>: View { public typealias Handoff = MeshWordmarkIntroHandoff let wordmark: String let tagline: String// ... (click "Show full code" to see more)Viewing: MeshWordmarkIntro.swift•1 of 4