GUI library for displaying various popups (HUD), written in pure Swift.

Overview

SwiftNotice

SwiftNotice is a GUI library for displaying various popups (HUD) written in pure Swift, fits any scrollview and supports iPhone X.

Features

SwiftNotice gif

Pretty easy to use

In any subclass of UIView, UIScrollView, UIViewController, UITableViewController, UITableViewCell:

self.pleaseWait()

self.noticeTop("OK!")

self.noticeSuccess("Success!")
self.noticeError("Error!")
self.noticeInfo("Info")

self.noticeOnlyText("Only Text")

self.clearAllNotice() // clear

Read the documentation for more information.

Installation

Just clone and add SwiftNotice.swift to your project.

Requirements

  • iOS 7.0+
  • Xcode 9 (Swift 4) in current swift4 branch.
  • Xcode 8 (Swift 3) in swift3 branch.
  • Xcode 7 (Swift 2) in master branch.
  • Xcode 6.3 (Swift 1.2) in v3.1

Contribution

You are welcome to fork and submit pull requests.

License

SwiftNotice is open-sourced software licensed under the MIT license.

Comments
  • Cocoapods

    Cocoapods

    I'd be cool to also add Cocoapods support. I done this implementation myself last week for my library. Just follow this post and this checklist. Lemme know if you need any help! :smile:

    opened by lfarah 3
  • Application keep crashing in ios7

    Application keep crashing in ios7

    My application keep crashing in ios 7 on below line

    static let rv = UIApplication.sharedApplication().keyWindow?.subviews.first as! UIView

    when i have printed UIApplication.sharedApplication().keyWindow then it is showing nil.

    Please help.

    opened by ravifullestop 3
  • Device Orientation

    Device Orientation

    It seems that when you attempt to use this with an app in landscape mode, the notification is displayed sideways (for portrait orientation)

    Any ideas on how to make this work both in landscape and portrait?

    opened by nick2687 3
  • UIStatusBarStyle issue

    UIStatusBarStyle issue

    In my iPhone application built with Xcode 6.3.1 for iOS 8.3 I set

    override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent }

    When i use this function self.infoNotice("Info") the status bar is still black against How can I resolve this issue ?

    Kind Regards,

    opened by burhanaksendir 3
  • UIStatusBarStyle color

    UIStatusBarStyle color

    at issues#3 use View controller-based status bar appearance-> no but at ios9 xcode7 : CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable in my debugger how can i use the swiftnotic and change UIStatusBarStyle color

    opened by lkqin 2
  • device orientation layout problem (in landscape mode)

    device orientation layout problem (in landscape mode)

    it seems like that it still used the layout in portrait mode. that is the preview image in the example project.

    Imgur

    build in OS X 10.11.1 ,XCode 7.0.1 , iOS 9.0

    opened by lyragosa 2
  • iOS8 越界crash

    iOS8 越界crash

    /* just for iOS 8 */ static var degree: Double { get { return [0, 0, 180, 270, 90][UIApplication.shared.statusBarOrientation.hashValue] as Double } }

    这里的hashValue 应该改成rawValue吧,不然在iOS8会越界crash的

    opened by lizhaobomb 1
  • XCODE8 兼容性改进

    XCODE8 兼容性改进

    timer.setTimer 在XCODE8 中已经废弃,编译报错。可以替换为下面的代码:timer.scheduleRepeating(deadline: DispatchTime.now(), interval: .milliseconds(timeInterval), leeway: .milliseconds(1))

    opened by ynmaoyong 1
  • Please wait with a finishing success or failure

    Please wait with a finishing success or failure

    It would be great if we could have the pleaseWait loader with a success or failure at the end like on making any network call it could either be a success or failure so if we could have function which loader and custom message to give success or failure

    opened by posaninagendra 1
  • Xcode 10.1 issue

    Xcode 10.1 issue

    Hello

    i am using SwiftNotice.swift file in Xcode 10.1 and it is not compatible for Xcode new version. Please do help me for the Xcode 10.1 as soon as possible.

    Regards Nitesh

    opened by NiteshKhandal 1
  • 有内存泄漏问题

    有内存泄漏问题

    pleaseWait() UIApplication.shared.keyWindow?.rootViewController = UIViewController() clearAllNotice() 在任意controller里执行完以上代码跳转到新的controller之后,旧controller的view没有被释放

    opened by Franzeyang 1
  • Whenever loader is loading the user interaction not disabled.

    Whenever loader is loading the user interaction not disabled.

    Whenever please wait loader is loading the user interaction not disabled. In this case the user interaction should be disabled completely and when calling clear all notice the user interaction is completely enabled again.

    Please help me, How can we achieve this ???

    opened by ankitbansal806 1
Releases(v5.0)
Owner
John Lui
John Lui
Toasts and popups library written with SwiftUI

Popup View Toasts and popups library written with SwiftUI We are a development agency building phenomenal apps. Usage Put all your body code into a ZS

Exyte 1.9k Jan 5, 2023
FloatingActionSheetController is a cool design ActionSheetController library written in Swift2.

FloationgActionSheetController FloatingActionSheetController is a cool design ActionSheetController library written in Swift2. Overview Requirements X

Ryo Aoyama 141 Oct 30, 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
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
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
Fully customizable and extensible action sheet controller written in Swift

XLActionController By XMARTLABS. XLActionController is an extensible library to quickly create any custom action sheet controller. Examples The action

xmartlabs 3.3k Dec 31, 2022
A message bar for iOS written in Swift.

Dodo, a message bar for iOS / Swift This is a UI widget for showing text messages in iOS apps. It is useful for showing short messages to the user, so

Evgenii Neumerzhitckii 874 Dec 13, 2022
A message bar for iOS written in Swift.

Dodo, a message bar for iOS / Swift This is a UI widget for showing text messages in iOS apps. It is useful for showing short messages to the user, so

Evgenii Neumerzhitckii 874 Dec 13, 2022
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

Daiki Okumura 406 Sep 5, 2022
😍A simple NoticeBar written by Swift 3, similar with QQ notice view.

NoticeBar ?? A simple NoticeBar written by Swift 3, similar with QQ notice view. ?? ScreenShots Remember: If you want the status bar style change, you

Qiun Cheng 235 Sep 9, 2022
A Google like action sheet for iOS written in Swift.

MaterialActionSheetController Lightweight and totally customizable. Create and present it the way you do with UIAlertController. Screenshots Demo | De

Thanh-Nhon NGUYEN 103 Jun 29, 2022
Advance animated alerts for iOS written in Swift

LIHAlert LIHAlert provides animated banners for iOS. Updated to Swift 3 Demo Project The LIHAlert workspace contains a demo project, also used for dev

null 37 Dec 9, 2022
A simple custom popup dialog view for iOS written in Swift. Replaces UIAlertController alert style.

A simple custom popup dialog view for iOS written in Swift. Replaces UIAlertController alert style.

donggyu 5 Jan 26, 2022
FCAlertView is a Flat Customizable AlertView for iOS (Written in Objective C)

FCAlertView FCAlertView is a Flat Customizable AlertView, written in Objective C Quick Links 1. Swift 2. Installation 3. Example App 4. Adding FCAlert

Nima Tahami 794 Nov 29, 2022
zekunyan 608 Dec 30, 2022
Beautiful animated Login Alert View. Written in Objective-C

UIAlertView - Objective-C Animated Login Alert View written in Swift but ported to Objective-C, which can be used as a UIAlertView or UIAlertControlle

Letovsky 2 Dec 22, 2021
Animated Alert written in SwiftUI.

TransactionAlert Animated Alert written in SwiftUI. Easy to use Get Started Add a TAViewModel instance as an environment object to your Root View in y

null 11 Jul 21, 2022
Swift library to manage in app notification in swift language, like WhatsApp, Telegram, Frind, ecc.

InAppNotify - Manage in App notifications During develop of my app Frind, I needed to manage in app notifications like whatsapp or telegram, but i did

Luca Becchetti 438 Nov 20, 2022