SPAlert alternatives and similar libraries
Based on the "Alert" category.
Alternatively, view SPAlert alternatives based on common mentions on social networks and blogs.
-
SwiftMessages
A very flexible message bar for iOS written in Swift. -
SwiftEntryKit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps. -
Alerts Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date... -
NotificationBanner
The easiest way to display highly customizable in app notification banners in iOS -
PopupDialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style. -
Whisper
:mega: Whisper is a component that will make the task of display messages and in-app notifications simple. It has three different views inside -
XLActionController
Fully customizable and extensible action sheet controller written in Swift -
PMAlertController
PMAlertController is a great and customizable alert that can substitute UIAlertController -
Jelly
🌊 - Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexible API. -
CDAlertView
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift -
Queuer
Queuer is a queue manager, built on top of OperationQueue and Dispatch (aka GCD). -
StatusAlert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way. -
SPIndicator
Floating indicator, mimicrate to indicator which appear when silent mode switched. Can be present from top and bottom. Interactive with gesters. -
SwiftOverlays
SwiftOverlays is a Swift GUI library for displaying various popups and notifications -
GoogleWearAlert
An Android Wear style confirmation view for iOS -
Toast-Swift
A Swift Toast view - iOS 14 style and newer - built with UIKit. 🍞 -
AwaitToast
🍞 An async waiting toast with basic toast. Inspired by facebook posting toast -
FCAlertView
FCAlertView is a Flat Customizable AlertView for iOS (Swift) -
Indicate
Interactive notification pop-over (aka "Toast) modeled after the iOS AirPods and Apple Pencil indicator. -
MaterialActionSheetController
A Google like action sheet for iOS written in Swift. -
ALRT
An easier constructor for UIAlertController. Present an alert from anywhere. -
Notie
In-app notification in Swift, with customizable buttons and input text field. -
HYAlertController
A Simple And Minimalist iOS AlertController -
KRAlertController
A beautiful alert controller for your iOS. -
GSAlert
[deprecated] UIAlertController support iOS 7+ and written in swift. -
SwiftAlertController
Nice and easy UIAlertController extensions
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SPAlert or a related project?
README
SPAlert
Popup from Apple Music & Feedback in AppStore. Contains Done
, Heart
, Error
and other presets. 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.
And more:
If you like the project, don't forget to put star ★
and follow me on GitHub:
Navigate
Requirements
Swift 4.2
& 5.0
. Ready for use on iOS 10+
Installation
CocoaPods:
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate SPAlert
into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'SPAlert'
Swift Package Manager
The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
To integrate SPAlert
into your Xcode project using Xcode 11, specify it in File > Swift Packages > Add
:
https://github.com/ivanvorobei/SPAlert
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate SPAlert
into your Xcode project using Carthage, specify it in your Cartfile
:
github "ivanvorobei/SPAlert"
Manually
If you prefer not to use any of dependency managers, you can integrate SPAlert
into your project manually. Put Source/SPAlert
folder in your Xcode project. Make sure to enable Copy items if needed
and Create groups
.
Quick Start
For best experience, I recommend presenting the alerts by calling the class functions on SPAlert
. These functions are updated regularly and show the alerts "the Apple way". I focus on presets:
SPAlert.present(title: "Added to Library", preset: .done)
For using a custom image:
SPAlert.present(title: "Love", message: "We'll recommend more like this in For You", image: UIImage(named: "Heart")!)
For showing a simple text message:
SPAlert.present(message: "Text!")
Usage
If you require deep customization, this section will show you what you can do.
Duration
If you want the SPAlert
to be shwon longer, use the duration
property:
let alertView = SPAlertView(title: "Added to Library", message: nil, preset: SPAlertPreset.done)
alertView.duration = 3
alertView.present()
Dark Mode
Dark Mode needs no additional configuration. As soon as the user changes their interface to dark, all alerts will follow suit.
This is achieved by checking the userInterfaceStyle
property on traitCollection
.:
if self.traitCollection.userInterfaceStyle == .dark {
return true
}
It is available since iOS 12, for earlier iOS versions the alerts will always be shown in Light Mode.
Layout
To change the size and spacing of the alerts:
alertView.layout.topSpace = 18
alertView.layout.iconHeight = 25
For more properties see the class.
Dismiss by Tap
If you tap the alert, it will disappear ahead of time. This can be disabled:
alertView.dismissByTap = false
Haptic
If you use presets, the vibro-response will be started automatically. To customize this, you need set the haptic
property:
alertView.haptic = .success
To disable haptics, set it to .none
.
Corner Radius
You can change the corner radius by setting the cornerRadius
property:
alertView.layer.cornerRadius = 40
Other Projects
SPPermissions
Allow request permissions with native dialog UI and interactive animations. Also you can request permissions without dialog. Check state any permission. You can start using this project with just two lines of code and easy customisation.
SPDiffable
Apple's diffable API requerid models for each object type. If you want use it in many place, you pass many time to implemenet and get over duplicates codes. This project help you do it elegant with shared models and special cell providers for one-usage models.
Russian Community
Присоединяйтесь в телеграм канал Код Воробья, там найдете заметки о iOS разработке и дизайне. Большие туториалы выклыдываю на YouTube.