All Projects → varabeis → Spalert

varabeis / Spalert

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

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Spalert

Nativepopup
Clone of Apple iOS App's feedback popup, and easily customizable.
Stars: ✭ 247 (-75.64%)
Mutual labels:  appstore, feedback, apple, alert, popup
Spstorkcontroller
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,494 (+145.96%)
Mutual labels:  apple, native, alert, popup
Alerttoast
Create Apple-like alerts & toasts using SwiftUI
Stars: ✭ 151 (-85.11%)
Mutual labels:  apple, ui-components, alert, popup
SPStorkController
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,515 (+148.03%)
Mutual labels:  apple, alert, native, popup
Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (-90.14%)
Mutual labels:  feedback, alert, popup
Cfnotify
A customizable framework to create draggable views
Stars: ✭ 490 (-51.68%)
Mutual labels:  uikit, ui-components, alert
Statusalert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.
Stars: ✭ 809 (-20.22%)
Mutual labels:  apple, uikit, alert
WWDC
🌈 𝐖𝐖𝐃𝐂 𝐒𝐞𝐬𝐬𝐢𝐨𝐧 𝐍𝐨𝐭𝐞𝐬 👩🏻‍💻 ✨
Stars: ✭ 31 (-96.94%)
Mutual labels:  apple, uikit, appstore
Sweetalert
A beautiful replacement for JavaScript's "alert"
Stars: ✭ 21,871 (+2056.9%)
Mutual labels:  alert, popup
Haptica
Easy Haptic Feedback Generator 📳
Stars: ✭ 587 (-42.11%)
Mutual labels:  feedback, apple
Swiftentrykit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps.
Stars: ✭ 5,706 (+462.72%)
Mutual labels:  alert, popup
Hackers
Hackers is an elegant iOS app for reading Hacker News written in Swift.
Stars: ✭ 513 (-49.41%)
Mutual labels:  appstore, apple
Color Picker For Ios
Colorful: iOS color picker built with Swift.
Stars: ✭ 709 (-30.08%)
Mutual labels:  uikit, ui-components
Miblurpopup
MIBlurPopup lets you create popups with a blurred background
Stars: ✭ 598 (-41.03%)
Mutual labels:  alert, popup
Ttsegmentedcontrol
An elegant, animated and customizable segmented control for iOS created by Tapptitude
Stars: ✭ 471 (-53.55%)
Mutual labels:  uikit, animated
About Swiftui
Gathering all info published, both by Apple and by others, about new framework SwiftUI.
Stars: ✭ 5,954 (+487.18%)
Mutual labels:  apple, uikit
Cleanymodal
Swift UI Kit to present clean modal/alert
Stars: ✭ 437 (-56.9%)
Mutual labels:  ui-components, alert
Ffpopup
⛩ Presenting custom views as a popup in iOS.
Stars: ✭ 618 (-39.05%)
Mutual labels:  alert, popup
Qmui ios
QMUI iOS——致力于提高项目 UI 开发效率的解决方案
Stars: ✭ 6,433 (+534.42%)
Mutual labels:  uikit, ui-components
Fcalertview
FCAlertView is a Flat Customizable AlertView for iOS (Written in Objective C)
Stars: ✭ 777 (-23.37%)
Mutual labels:  ui-components, alert

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.

You can create more with custom images and SFSymbols more:

If you like the project, don't forget to put star ★ and follow me on GitHub:

https://github.com/varabeis

Migration to 3.0v

I did remove other presets becouse its UIImage symbols. Now you can do it with any symbols image. List of its you can get in SF Symbols app. For get it, usage next:

// Create image from symbols
let image = UIImage.init(systemName: "pencil.and.outline")
// Create preset with custom image
let preset = SPAlertIconPreset.custom(image)
// Present `SPAlert`
SPAlert.present(title: "Title", message: "Message", preset: preset)

Navigate

Installation

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 12, specify it in File > Swift Packages > Add Package Dependency...:

https://github.com/varabeis/SPAlert

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'

Manually

If you prefer not to use any of dependency managers, you can integrate SPAlert into your project manually. Put Sources/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 alerts by calling the class functions SPAlert. These functions are updated regularly and show the alerts as Apple way:

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", preset: .custom(UIImage.init(named: "heart")!))

For showing a simple text message:

SPAlert.present(message: "Something going wrong", haptic: .error)

Usage

Duration

For change duration of present time, create alert view and call present method with custom duration:

let alertView = SPAlertView(title: "Complete", preset: .done)
alertView.present(duration: 3)

Layout

For customise layout and margins, use layout property. You can manage margins for each side, icon size and space between image and titles:

alertView.layout.iconSize = .init(width: 24, height: 24)
alertView.layout.margins.top = 12
alertView.layout.spaceBetweenIconAndTitle = 8

Dismiss by Tap

If you tap the alert, it will disappear. This can be disabled:

alertView.dismissByTap = false

Haptic

For manage haptic, you shoud pass it in present method:

alertView.present(duration: 1.5, haptic: .success, completion: nil)

You can remove duration and completion, its have default values.

Other Projects

SPPermissions

Using for request and check state of permissions. Available native UI for request multiple permissions at the same time. Simple integration and usage like 2 lines code.

SPPerspective

Animation of widgets from iOS 14. 3D transform with dynamic shadow. Video preview. Available deep customisation 3D and shadow. Also you can use static transform without animation.

SPDiffable

Simplifies working with animated changes in table and collections. Apple's diffable API required models for each object type. If you want use it in many place, you pass time to implement it and get over duplicates codes. This project help do it elegant with shared models and special cell providers. Support side bar iOS14 and already has native cell providers and views.

Russian Community

В телеграм-канале Код Воробья пишу о iOS разработке. Видео-туториалы выклыдываю на YouTube:

Tutorials on YouTube

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].