GithubHelp home page GithubHelp logo

hemangshah / zingle Goto Github PK

View Code? Open in Web Editor NEW
111.0 5.0 20.0 914 KB

Zingle โ€“ An alert will display underneath your UINavigationBar ๐ŸŽ…

License: MIT License

Swift 94.16% Ruby 5.84%
swift uinavigationbar alert uinavigationcontroller

zingle's Introduction

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. CocoaPods โ€“ pod '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.

zingle's People

Contributors

ahmed-shehata avatar ajriverav avatar hemangshah avatar jobinsjohn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zingle's Issues

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.

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

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.