https://github.com/emvakar/ekbluralert
Create an EK Blur Alert View for light actions in iOS Apps.
https://github.com/emvakar/ekbluralert
alert blur blurview ios macos modalview swift swift4 view
Last synced: 6 months ago
JSON representation
Create an EK Blur Alert View for light actions in iOS Apps.
- Host: GitHub
- URL: https://github.com/emvakar/ekbluralert
- Owner: emvakar
- License: mit
- Created: 2017-10-30T15:43:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T15:15:52.000Z (almost 5 years ago)
- Last Synced: 2024-11-21T04:20:19.302Z (6 months ago)
- Topics: alert, blur, blurview, ios, macos, modalview, swift, swift4, view
- Language: Swift
- Homepage: https://www.facebook.com/emkarimov
- Size: 224 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EK Blur Alert
[](https://swift.org)  [](https://travis-ci.com/emvakar/EKBlurAlert) [](https://github.com/emvakar/EKBlurAlert/blob/master/LICENSE) [](https://GitHub.com/emvakar/EKBlurAlert/releases/)
Create an EK Blur Alert View for light actions in iOS Apps like iOS Music application.
EK Blur Alert View is a framework created to recreate Apple's private Modal Status View.
While designing iOS apps we may want to alert the user to a successful completion of a task.
When we create applications we need help for users about the completion of certain operations.
This framework will help you to make the same hints as in applications from Apple's music app or podcast app.Apple's solution is to display a self-removing and small modal view to the screen.

With uses in the News app, the Apple Music app, and the Podcasts app, developers have been wanting access to this view for a while now.
That is what this framework solves.## Install
### Swift Package Manager
```swift.package(url: "https://github.com/emvakar/EKBlurAlert.git", from: "2.0.0")
```### Cocoapods
```ruby
source 'https://github.com/emvakar/EKBlurAlert.git'pod 'EKBlurAlert'
```
### ManualySimply import the framework and add the following code to get started.
### How to use
Empty setup with test parameters simple:
```swift
import EKBlurAlertlet alertView = EKBlurAlertView(frame: view.bounds)
view.addSubview(alertView)
```Or fully customize the EKBlurAlertView with the following parameters:
```swift
import EKBlurAlertfunc presentBluredAlertView() {
let alertView = EKBlurAlertView(frame: view.bounds,
titleFont: UIFont.systemFont(ofSize: 17),
subTitleFont: UIFont.systemFont(ofSize: 17),
image: UIImage(),
title: "my Title",
subTitle: "My subtitle",
autoFade: true,
after: 0.6,
radius: 15,
blurEffect: .dark)
view.addSubview(alertView)
}
```## Features
### Animations
The EKBlurAlertView will appear and disappear with a fast fading and scaling effect to match Apple's implementation.
### Timer
The EKBlurAlertView will only appear for a couple seconds so as not to interfere with the UX of your app.
### Style
The EKBlurAlertView is designed to match the style and aesthetics of Apple's implementation.
This includes slightly rounded corners,
a blurred visual effects view as the background,
heading and subheading options in addition to an image,
and placement in the center of the view.
The animations were designed to match Apple's original design.