Giter Site home page Giter Site logo

emvakar / ekbluralert Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 3.0 229 KB

Create an EK Blur Alert View for light actions in iOS Apps.

Home Page: https://www.facebook.com/emkarimov

License: MIT License

Swift 90.55% Ruby 9.45%
swift swift4 alert ios macos view modalview blurview blur

ekbluralert's Introduction

EK Blur Alert

Swift Version Cocoapods Build Status GitHub license GitHub release

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.

text

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

    .package(url: "https://github.com/emvakar/EKBlurAlert.git", from: "2.0.0")

Cocoapods

source 'https://github.com/emvakar/EKBlurAlert.git'

pod 'EKBlurAlert'

Manualy

Simply import the framework and add the following code to get started.

How to use

Empty setup with test parameters simple:

import EKBlurAlert

let alertView = EKBlurAlertView(frame: view.bounds)
view.addSubview(alertView)

Or fully customize the EKBlurAlertView with the following parameters:

import EKBlurAlert

func 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.