Zingle – An alert will display underneath your UINavigationBar 🎅

Overview

Zingle

Zingle – An alert will display underneath your UINavigationBar 🎅

💥 Note: Zingle has a dependency to have a UINavigationController in your app, which means it will not work/display in your app if you don't have a UINavigationController linked to a UIViewController in which you're planning to show an alert. However, it will get display even if the UINavigationBar is hidden for a particular UIViewController.

Build Status License Platform Swift 4.x MadeWithLove Awesome-Swift

  1. Screenshots
  2. Features
  3. Installation
  4. Setup
  5. Usage
  6. Credits
  7. Thanks
  8. License

Screenshots

iPhone8+ iPhoneX
Landscape

Features

  1. Easy to setup & Use
  2. Dynamic Property Configurations.
  3. Lightweight with zero dependencies.

Installation

  1. Manually – Add Zingle.swift file to your Project.
  2. CocoaPodspod 'Zingle'

You can read the CHANGELOG file for a particular release.

Setup

import Zingle

Usage

Zingle.init(duration: 0.5, delay: 3)
  .message(message: "No Internet Connection.")
  .messageIcon(icon: #imageLiteral(resourceName: "warning-icon"))
  .messageColor(color: .white)
  .messageFont(font: UIFont.init(name: "AmericanTypewriter", size: 15.0)!)
  .backgroundColor(color: UIColor.red)
  .show()

You can also use it with in-built extension to UIViewController.

//Create ZingleConfig.
let config = ZingleConfig()
config.delay = 2.0
config.duration = 1.0
config.messageColor = UIColor.white
config.messageFont = UIFont.init(name: "AmericanTypewriter", size: 15.0)!
config.backgroundColor = UIColor.purple.withAlphaComponent(0.5)
        
//Show Zingle with `self` (UIViewController) with custom configuration.
self.zingle(message: "No Internet Connection.", withConfig: config)

//or

//Show Zingle with `self` (UIViewController) with default configuration.
self.zingle(message: "No Internet Connection.")

You can watch to Zingle to see continuous updates. Stay tuned.

Have an idea for improvements of this class? Please open an issue.    

Credits

Hemang Shah

You can shoot me an email to contact.  

Thank You!!

See the contributions for details.

License

The MIT License (MIT)

Read the LICENSE file for details.

You might also like...
Animated alert library like Swarm app.
Animated alert library like Swarm app.

TKSwarmAlert Animation Tool for Alert like Swarm app. ScreenShot Installation CocoaPods You can use CocoaPods to install TKSwarmAlert by adding it to

Simple Alert View written in Swift, which can be used as a UIAlertController. (AlertController/AlertView/ActionSheet)
Simple Alert View written in Swift, which can be used as a UIAlertController. (AlertController/AlertView/ActionSheet)

DOAlertController Simple Alert View written in Swift, which can be used as a UIAlertController replacement. It supports from iOS7! It is simple and ea

Customizable simple Alert and simple ActionSheet for Swift
Customizable simple Alert and simple ActionSheet for Swift

SimpleAlert It is simple and easily customizable alert. Can be used as UIAlertController. Appetize's Demo Requirements Swift 5.0 iOS 9.0 or later How

Custom alert View to iOS applications
Custom alert View to iOS applications

A simple, easy and custom iOS UIAlertView written in Swift Malert came to facilitates custom alert views as UIAlertController. Malert allows you to pe

BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.
BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.

BPStatusBarAlert BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.

Simple DropDown Alert View For Any iOS Projects.
Simple DropDown Alert View For Any iOS Projects.

⚠️ DEPRECATED, NO LONGER MAINTAINED JDropDownAlert JDropDownALert Simple DropDown Alert View For Any iOS Projects. Usage Top let alert = JDropDown

A simple alert with logo image and color.
A simple alert with logo image and color.

YMLogoAlert About YMLogoAlert A simple custom alert. YMLogoAlert lets you pop up a simple alert with a natural animation, your app's own color, font a

A Simple Customizable Alert With Swift
A Simple Customizable Alert With Swift

SimpleCustomizableAlert trying to make my very first library. Support Title Message (TextView) Image TextField Button Action Example let alert

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets. Support SwiftUI.
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets. Support SwiftUI.

SPAlert Popup from Apple Music & Feedback in AppStore. Contains Done, Heart, Error and other presets. Supports Dark Mode. I tried to recreate Apple's

Comments
  • Alert Does Not Show

    Alert Does Not Show

    Even though I don't have a UINavigationBar, when I change the default Y position to something else (e.g. 0, 50, 150, 250, 350, ...) I couldn't see the alert bar shown.

    wontfix 
    opened by tadeha 6
  • Not getting completely dismissed

    Not getting completely dismissed

    The message after dismissing shows above the Navigation Bar in inverted state. I think the message is not getting dismissed completely. You can see the text under the navigation bar after dismissing.

    screen shot 2018-01-07 at 12 24 35 pm bug 
    opened by jobinsjohn 4
Releases(1.3.0)
Owner
Hemang
iOS Engineer turned to Full Stack
Hemang
An easier constructor for UIAlertController. Present an alert from anywhere.

ALRT An easier constructor for UIAlertController. Present an alert from anywhere like this. ALRT.create(.alert, title: "Alert?").addOK().addCancel().s

Masahiro Watanabe 97 Nov 11, 2022
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift

CDAlertView is highly customizable alert popup written in Swift. Usage is similar to UIAlertController. Screenshots Animations Usage Basic usage witho

Candost Dagdeviren 1.1k Dec 30, 2022
PMAlertController is a great and customizable alert that can substitute UIAlertController

PMAlertController is a small library that allows you to substitute Apple's uncustomizable UIAlertController, with a beautiful and totally customizable

Paolo Musolino 2.5k Jan 3, 2023
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.

Introduction Popup Dialog is a simple, customizable popup dialog written in Swift. Features Easy to use API with hardly any boilerplate code Convenien

Orderella Ltd. 3.8k Dec 20, 2022
Beautiful animated Alert View. Written in Swift

SCLAlertView Animated Alert View written in Swift, which can be used as a UIAlertView or UIAlertController replacement. Since UIAlertView is deprecate

Viktor Radchenko 5.2k Jan 3, 2023
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.

SPAlert Popup from Apple Music & Feedback in AppStore. Contains Done, Heart, Error and other presets. Supports Dark Mode. I tried to recreate Apple's

Ivan Vorobei 1.8k Jan 7, 2023
Live animated Alert View for iOS written in Swift

Sweet Alert iOS Beautiful Animated custom Alert View inspired from javascript library SweetAlert. Written in Swift this SweetAlertView can be used in

Sahil 2k Dec 22, 2022
A Swift package for iOS/tvOS for easy alert presentation

AlertPresenter Listed on the Swift Package Index and originally posted on my blog. It can be fiddly to handle the presentation of alerts on a specific

Chris Mash 14 Jul 1, 2022
PMAlertController is a great and customizable alert that can substitute UIAlertController

PMAlertController is a small library that allows you to substitute Apple's uncustomizable UIAlertController, with a beautiful and totally customizable

Paolo Musolino 2.5k Jan 3, 2023
Highly configurable iOS Alert Views with custom content views

NYAlertViewController NYAlertViewController is a replacement for UIAlertController/UIAlertView with support for content views and UI customization. Fe

Nealon Young 609 Nov 20, 2022