Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

317 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlertKit

AlertKitAPI.present(
    title: "Added to Library",
    icon: .done,
    style: .iOS17AppleMusic,
    haptic: .success
)

Navigate

Installation

Ready to use on iOS 13+. Supports iOS and visionOS. Working with UIKit and SwiftUI.

Swift Package Manager

In Xcode go to Project -> Your Project Name -> Package Dependencies -> Tap Plus. Insert url:

https://github.com/philippdormann/AlertKit

or adding it to the dependencies of your Package.swift:

dependencies: [
    .package(url: "https://github.com/philippdormann/AlertKit", .upToNextMajor(from: "5.2.0"))
]

SwiftUI

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)

Customisation

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

About

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages