https://github.com/1998code/19-splash-screen-for-swiftui
Be the first to try the next-gen SwiftUI Splash Screen. [ AI Assistant available below ]
https://github.com/1998code/19-splash-screen-for-swiftui
splash splashscreen splashscreenkit swift swiftui
Last synced: about 1 month ago
JSON representation
Be the first to try the next-gen SwiftUI Splash Screen. [ AI Assistant available below ]
- Host: GitHub
- URL: https://github.com/1998code/19-splash-screen-for-swiftui
- Owner: 1998code
- License: mit
- Created: 2025-02-10T11:05:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-02T03:21:06.000Z (about 1 month ago)
- Last Synced: 2026-02-02T14:37:21.287Z (about 1 month ago)
- Topics: splash, splashscreen, splashscreenkit, swift, swiftui
- Language: Swift
- Homepage: https://shareby.vercel.app/4zel3m
- Size: 4.78 MB
- Stars: 182
- Watchers: 1
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SplashScreenKit
### A New Splash Screen for SwiftUI

## Version
**2.1.0 (Stable Release)**
*Optimized for high-performance interaction with zero jank.*
- **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.
- **Two Display Modes:** Choose between dynamic `.carousel` and elegant `.static` layouts.
- **Advanced Text Effects:** Beautiful text rendering and transitions using SwiftUI 6.0 features.
## Environment / Tested on
- 📲 iOS 18.0+ required
- 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.
```swift
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 (NEW)
A clean, scrollable layout perfect for product introductions.
```swift
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")
}
```

## 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.
## Copyright
App Store Screenshots © 2025 Apple Inc.
## Reference
[Creating visual effects with SwiftUI - Apple Developer](https://developer.apple.com/documentation/swiftui/creating-visual-effects-with-swiftui)
## Related Posts on X
https://x.com/1998design/status/1888641485303878110
https://x.com/1998design/status/1888945523845140677
## Combinations
Use [SwiftNEWKit](https://github.com/1998code/SwiftNEWKit) together, 2X effective!

## License
MIT