Skip to content

1998code/19-Splash-Screen-for-SwiftUI

Repository files navigation

SplashScreenKit

A New Splash Screen for SwiftUI

Screenshot 2025-02-10 at 8 18 53 PM
Region Languages
Global English
Asia 廣東話 繁體中文 简体中文 日本語 한국어 Indo हिन्दी
Europe Français Deutsch Español Русский Polski Türkçe
ME & Africa العربية Kiswahili

Version

27.0.1 (Stable Release)
Adds a lightweight Apple Sports-inspired Simple Mode alongside the existing carousel and static layouts.

  • Simple Mode: Full-screen text-first splash screen with configurable SF Symbol logo, gradient background, footer copy, and inline privacy link.
  • Seamless Infinite Carousel: New virtual-index logic prevents "flying cards" and ensures smooth infinite rotation.
  • Performance Optimized: Metal-accelerated rendering (drawingGroup) and efficient per-frame updates via RunLoop.
  • Momentum Scrolling: Butter-smooth, velocity-based interactive gestures with native deceleration feel.
  • AsyncImage Support: Pre-validated URL handling for lag-free remote image loading.
  • Three Display Modes: Choose between dynamic .carousel, elegant .static, and lightweight .simple layouts.
  • Advanced Text Effects: Beautiful text rendering and transitions using SwiftUI 6.0 features.

Environment / Tested on

  • 📲 iOS 18.0+
  • Swift 6.0
  • Xcode 16.0+

How to use

Add the package to your project: https://github.com/1998code/19-Splash-Screen-for-SwiftUI

Carousel Mode (Default)

The classic interactive experience with rotating images.

SplashScreen(
    images: [
        Photo("ImageName1"),
        Photo("https://example.com/image.jpg") // Remote URLs supported!
    ],
    title: "Welcome to",
    product: "Apple TV",
    caption: "Browse all movies, TV shows, and more.",
    cta: "Watch Now"
) {
    print("Action Button Tapped")
}

Static Mode

A clean, scrollable layout perfect for product introductions.

SplashScreen(
    mode: .static,
    images: [Photo("https://url.to/header_image.jpg")],
    title: "Creator Studio",
    product: "3 months of Creator Studio for free.",
    caption: "Bring your vision to life with powerful apps.",
    features: [
        SplashFeature(title: "Feature 1", icon: "video"),
        SplashFeature(title: "Feature 2", icon: "waveform")
    ],
    footer: "Terms and conditions apply.",
    cta: "Accept Offer",
    secondaryCta: "See All Plans",
    secondaryAction: {
        print("Secondary action tapped")
    }
) {
    print("Primary action tapped")
}

Simple Mode (NEW)

A text-first, Apple Sports-inspired welcome screen for lightweight onboarding.

SplashScreen(
    mode: .simple,
    logoSystemName: "apple.logo",
    title: "Welcome to",
    product: "Sports",
    caption: "Get real-time scores, stats, and standings for the teams and leagues you follow.",
    footer: "Apple may use information about your subscriptions to show relevant offers. Device identifiers may be used to keep scores and other data up to date.",
    footerLink: "See how your data is managed...",
    footerLinkURL: URL(string: "https://www.apple.com/legal/privacy/data/en/apple-sports/"),
    cta: "Continue"
) {
    print("Continue tapped")
}

logoSystemName accepts any SF Symbol name and defaults to "apple.logo". Simple Mode does not require images, so the images parameter can be omitted.

Simple2

Known Issues

  • Only compatible with iOS 18+, leveraging the latest SwiftUI TextRenderer and visual effect APIs.
  • Resizing: Carousel mode is optimized for Pro/Pro Max. Static mode includes a ScrollView to handle smaller devices and varying content lengths. Simple Mode scales its typography and spacing from the device width.

Copyright

App Store Screenshots © 2025 Apple Inc.

Reference

Creating visual effects with SwiftUI - Apple Developer

Related Posts on X

https://x.com/1998design/status/2019418746553790664
https://x.com/1998design/status/1888641485303878110
https://x.com/1998design/status/1888945523845140677

Combinations

Use SwiftNEWKit together, 2X effective!

License

MIT

Supported By



Ask DeepWiki

About

Be the first to try the next-gen SwiftUI Splash Screen. [ AI Assistant available below ]

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors

Languages