Logo Mask Reveal

Logo Mask Reveal

A launch splash where your logo tile springs in on a brand-colored screen and its symbol draws on. The tile then dips and scales up as a mask, revealing the app through it until it passes the screen edges.

Luiz Mello
  • screen
  • transition
  • animation

snippet.swift193 lines

5 files • Scroll to see all →
/// A launch splash that hands off to your app with the classic "logo window" reveal.////// On a brand-colored screen the logo tile springs in and its symbol draws on./// After a short beat the tile dips (anticipation), then scales up as a `.mask`/// over your content: the app shows through the growing tile until its rounded/// corners pass the screen edges. Touches reach the content only once it is fully/// revealed. Plays once per view identity; give it a new `.id` to replay.public struct LogoMaskReveal<Content: View>: View {    let systemImage: String    let appName: String    var brandColor: Color    var logoColor: Color    var logoSize: CGFloat    var holdDuration: Double    var onFinished: () -> Void    let content: Content​    private enum Phase: Equatable { case hidden, logo, anticipate, expanding, done }​    @State private var phase: Phase = .hidden​// ... (click "Show full code" to see more)
Viewing: LogoMaskReveal.swift•1 of 5