All Projects → TheAbstractDev → NotchyAlert

TheAbstractDev / NotchyAlert

Licence: MIT license
🚨Use the iPhone X Notch to display alerts. 🚨

Programming Languages

swift
15916 projects
c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to NotchyAlert

UA3REO-DDC-Transceiver
DDC/DUC SDR Tranceiver project
Stars: ✭ 93 (+34.78%)
Mutual labels:  notch
OnlySwitch
⚙️ All-in-One menu bar app, hide 💻MacBook Pro's notch, dark mode, AirPods, Shortcuts
Stars: ✭ 1,288 (+1766.67%)
Mutual labels:  notch
Flexlib
FlexLib是一个基于flexbox模型,使用xml文件进行界面布局的框架,融合了web快速布局的能力,让iOS界面开发像写网页一样简单快速
Stars: ✭ 1,569 (+2173.91%)
Mutual labels:  iphonex
LCAuthManager
一个简单、高效、易用的权限验证库,包括手势密码、Touch ID和Face ID;A comprehensive, efficient and easy-to-use rights verification library, including Gesture Password, Touch ID and Face ID.
Stars: ✭ 28 (-59.42%)
Mutual labels:  iphonex
AlertBar
An easy alert on status bar
Stars: ✭ 64 (-7.25%)
Mutual labels:  iphonex
cocos2x-adaptation
cocos2dx 横版各种适配 iphoneX适配 齐刘海 凹凸屏
Stars: ✭ 25 (-63.77%)
Mutual labels:  iphonex

NotchyAlert

Cocoapods compatible Carthage compatible Platform License Build Status

Prerequisites

  • Xcode 9.x
  • Swift 4.x
  • iPhone X Simulator/Device

Demo

Installation

Cocoapods

To install NotchyAlert using Cocoapods, add the following line to your Podfile:

pod 'NotchyAlert'

Carthage

To install NotchyAlert using Carthage, add the following line to your Cartfile:

github "TheAbstractDev/NotchyAlert"

Usage

First, you'll need to import NotchyAlert

import NotchyAlert

Title Only

let notchy = Notchy(title: "Oops!", description: nil, image: nil)
notchy.presentNotchy(in: self.view, duration: 3)

Title and Description

let notchy = Notchy(title: "Oops!", description: "No Internet Connection.", image: nil)
notchy.presentNotchy(in: self.view, duration: 3)

Title and Image

let notchy = Notchy(title: "Oops!", description: nil, image: "<YOUR IMAGE>")
notchy.presentNotchy(in: self.view, duration: 3)

Title, Decription and Image

let notchy = Notchy(title: "Oops!", description: "No Internet Connection.", image: "<YOUR IMAGE>")
notchy.presentNotchy(in: self.view, duration: 3)

Bounce Effect

By default, the bounce effect is true. You can choose to disable the bounce effect by setting false on the call of presentNotchy

notchy.presentNotchy(in: self.view, duration: 3, bounce: false)

Example

You can test it by downloading and run the Example project.

License

NotchyAlert is available under the MIT license. See the LICENSE file for more info.

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