
Stretchy Profile Header
A full profile screen whose cover stretches and blurs when pulled down and collapses into a compact top bar on scroll. The large avatar shrinks and travels into the bar beside the name, driven frame by frame by the scroll offset.
- header
- profile
- animation
snippet.swift514 lines
6 files • Scroll to see all →
public struct StretchyProfileHeaderStat: Identifiable { public var id: String { label } let value: String let label: String public init(value: String, label: String) { self.value = value self.label = label }}/// Everything the profile screen shows. The cover is a gradient scene and the/// avatar a gradient monogram, so the snippet needs no image assets.public struct StretchyProfileHeaderProfile { let name: String let handle: String let bio: String let location: String let link: String let joined: String// ... (click "Show full code" to see more)Viewing: Model.swift•1 of 6