- July 26, 2025
- Mins Read
Popup from Apple Music & Feedback in AppStore. Contains Done
, Heart
, Error
and other. Supports Dark Mode. I tried to recreate Apple’s alerts as much as possible. You can find these alerts in the AppStore after feedback and after you add a song to your library in Apple Music.
For UIKit & SwiftUI call this:
AlertKitAPI.present(
title: “Added to Library”,
icon: .done,
style: .iOS17AppleMusic,
haptic: .success
)
Available 2 styles:
public enum AlertViewStyle {
case iOS16AppleMusic
case iOS17AppleMusic
}
Ready to use on iOS 13+. Supports iOS and visionOS. Working with UIKit
and SwiftUI
.
In Xcode go to Project -> Your Project Name -> Package Dependencies
-> Tap Plus. Insert url:
https://github.com/sparrowcode/AlertKit
or adding it to the dependencies
of your Package.swift
:
dependencies: [
.package(url: “https://github.com/sparrowcode/AlertKit”, .upToNextMajor(from: “5.1.5”))
]
This is an outdated way of doing things. I advise you to use SPM. However, I will continue to support Cocoapods for some time.
Cocoapods Instalation
CocoaPods is a dependency manager. For usage and installation instructions, visit their website. To integrate using CocoaPods, specify it in your Podfile:
pod ‘SPAlert’
If you prefer not to use any of dependency managers, you can integrate manually. Put Sources/AlertKit
folder in your Xcode project. Make sure to enable Copy items if needed
and Create groups
.
You can use basic way via AlertKitAPI or call via modifier:
let alertView = AlertAppleMusic17View(title: “Hello”, subtitle: nil, icon: .done)
VStack {}
.alert(isPresent: $alertPresented, view: alertView)
If you need customisation fonts, icon, colors or any other, make view:
let alertView = AlertAppleMusic17View(title: “Added to Library”, subtitle: nil, icon: .done)
// Change Font
alertView.titleLabel.font = UIFont.systemFont(ofSize: 21)
// Change Color
alertView.titleLabel.textColor = .white
You can present and dismiss alerts manually via view.
let alertView = AlertAppleMusic17View(title: “Added to Library”, subtitle: nil, icon: .done)
alertView.present(on: self)
// and dismiss
alertView.dismiss()
For dismiss all alerts that was presented:
AlertKitAPI.dismissAllAlerts()
If you use a AlertKit
, add your app via Pull Request.
NavigationKit is a lightweight library which makes SwiftUI navigation super easy to use. 💻 Installation 📦 Swift Package Manager Using Swift Package Manager, add ...
An alternative SwiftUI NavigationView implementing classic stack-based navigation giving also some more control on animations and programmatic navigation. NavigationStack Installation ...
With SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...
This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...