LCToast - Add toast to UIView.

Overview

LCToast

Add toast to UIView.

Requirements

  • iOS 8.0+

Features

The LCToast is a comparison of features with Toast and SVProgressHUD.

LCToast Toast SVProgressHUD
image position top center left center top center
superview any views any views UIWindow
automatic calculation text time interval
dismiss loading when toast shown
click the loading to dismiss it
modify center
progress
subtitle
queue
support for disabling superview interaction

Usage

show toast

[self.view lc_showToast:@"床前明月光,疑是地上霜。举头望明月,低头思故乡。"];
LCToastPositionTop LCToastPositionCenter LCToastPositionBottom
top center bottom

show image toast

[self.view lc_showToast:@"春种一粒粟,秋收万颗子。四海无闲田,农夫犹饿死。锄禾日当午,汗滴禾下土。谁知盘中餐,粒粒皆辛苦。" image:[UIImage imageNamed:@"warning"] position:(LCToastPositionCenter)];

show loading

[self.view lc_showLoading];

show progress

[self.view lc_showProgress:0.3];

Installation

CocoaPods

To integrate LCToast into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'LCToast'

Manual

  1. Download everything in the LCToast folder;
  2. Add (drag and drop) the source files in LCToast to your project;
  3. Import UIView+LCToast.h.

License

LCToast is provided under the MIT license. See LICENSE file for details.

You might also like...
🍞 Toast for Swift - Toaster Android-like toast with very simple interface
🍞 Toast for Swift - Toaster Android-like toast with very simple interface

Toaster Android-like toast with very simple interface. (formerly JLToast) Screenshots Features Queueing: Centralized toast center manages the toast qu

TextDrawer, is a UIView allows you to add text, with gesture, on UIView, or UIImage
TextDrawer, is a UIView allows you to add text, with gesture, on UIView, or UIImage

TextDrawer TextDrawer, is a UIView allows you to add text, with gesture, on UIView, or UIImage. About Annotating Images TextDrawer is the easiest way

A Swift extension that adds toast notifications to the UIView object class.
A Swift extension that adds toast notifications to the UIView object class.

Toast-Swift Toast-Swift is a Swift extension that adds toast notifications to the UIView object class. It is intended to be simple, lightweight, and e

SSToastMessage is written purely in SwiftUI. It will add toast, alert, and floating message view over the top of any view. It is intended to be simple, lightweight, and easy to use. It will be a popup with a single line of code.
SSToastMessage is written purely in SwiftUI. It will add toast, alert, and floating message view over the top of any view. It is intended to be simple, lightweight, and easy to use. It will be a popup with a single line of code.

SSToastMessage SSToastMessage is written in SwiftUI. It will add toast, alert, and floating message view over the top of any view. It is intended to b

CoffeeToast - A swift package to easily add Toast notifications to your app

CoffeeToast A simple Swift package to add Toast Notifications to your app. Insta

UIView+CameraBackground - Show camera layer as a background to any UIView.
UIView+CameraBackground - Show camera layer as a background to any UIView.

UIView+CameraBackground Show camera layer as a background to any UIView. Features Both front and back camera supported. Flash modes: auto, on, off. Co

Custom UIView class that hosts an array of UIbuttons that have an 'underline' UIView beneath them which moves from button to button when the user presses on them.
Custom UIView class that hosts an array of UIbuttons that have an 'underline' UIView beneath them which moves from button to button when the user presses on them.

Swift-Underlined-Button-Bar Custom UIView class that hosts an array of UIbuttons that have an 'underline' UIView beneath them which moves from button

slider view for choosing categories. add any UIView type as category item view. Fully customisable
slider view for choosing categories. add any UIView type as category item view. Fully customisable

CategorySliderView Horizontal or vertical slider view for choosing categories. Add any UIView type as category item view. Fully customisable Demo Inst

Easily add drop shadows, borders, and round corners to a UIView.

Easily add drop shadows, borders, rounded corners to a UIView. Installation CocoaPods Add the follwing to your Podfile: pod 'Shades' Usage Storyboard

A fully customizable library to easily display Animated Toast Messages in iOS using Swift!
A fully customizable library to easily display Animated Toast Messages in iOS using Swift!

CustomToastView-swift A fully customizable library to easily display Animated Toast Messages in iOS using Swift! Preview - All the custom toasts you c

A Swift Toast view - iOS 14 style and newer - built with UIKit. 🍞
A Swift Toast view - iOS 14 style and newer - built with UIKit. 🍞

Toast-Swift A Swift Toast view - iOS 14 style - built with UIKit. 🍞 Installation Swift Package Manager You can use The Swift Package Manager to insta

A simple way to show toast in SwiftUI.
A simple way to show toast in SwiftUI.

A simple way to show toast in SwiftUI Documentation • Example • Change Log Overview ToastUI provides you a simple way to present toast, head-up displa

A modern iOS toast view that can fit your notification needs
A modern iOS toast view that can fit your notification needs

CRToast CRToast is a library that allows you to easily create notifications that appear on top of or by pushing out the status bar or navigation bar.

🍞 Toast for Swift
🍞 Toast for Swift

Toaster Android-like toast with very simple interface. (formerly JLToast) Screenshots Features Queueing: Centralized toast center manages the toast qu

A Simple Toast Library for iOS
A Simple Toast Library for iOS

PowerplayToastKit Toasts Type Success. Warning Error Info Custom View (Dialog) Example To run the example project, clone the repo, and run pod install

A simple solution to show a toast message by writing single one line of code
A simple solution to show a toast message by writing single one line of code

easySwiftToast A very simple solution to show a toast message by writing single one line of code. Installation easySwiftToast is available through Coc

Interactive notification pop-over (aka
Interactive notification pop-over (aka "Toast) modeled after the iOS AirPods and Apple Pencil indicator.

Interactive notification pop-over (aka "Toast) modeled after the iOS AirPods and Apple Pencil indicator. Installation The recommended way is to use Co

ToastSwiftUI-master - A simple way to show a toast or a popup in SwiftUI

ToastSwiftUI-master - A simple way to show a toast or a popup in SwiftUI

Bulletin / 'Toast' style view for tvOS.
Bulletin / 'Toast' style view for tvOS.

KBBulletinView Bulletin / 'Toast' style view for tvOS. This project is an effort to create local application notifications/alerts similar to those use

Releases(2.0.0)
  • 2.0.0(Jun 27, 2022)

    • Fixed NSTimer: destroy toast view in time
    • The activity toast can set the size more flexibly
    • Modify function method name

    old:

    @interface UIView (LCToast)
    
    - (void)lc_showToastWithMessage:(NSString *)message;
    - (void)lc_showToastWithMessage:(NSString *)message position:(LCToastPosition)position;
    - (void)lc_showToastWithMessage:(nullable NSString *)message image:(nullable UIImage *)image position:(LCToastPosition)position;
    
    - (void)lc_dismissToast;
    - (void)lc_dismissAllToasts; 
    
    - (void)lc_dismissAllPopups; // Remove all popups including toast/loading/progress.
    
    @end
    
    @interface UIView (LCActivityLoading)
    
    - (void)lc_showLoading;
    - (void)lc_showLoadingWithMessage:(nullable NSString *)message;
    - (void)lc_showDisabledLoading; // `self` will not be able to respond to interaction events
    - (void)lc_showDisabledLoadingWithMessage:(nullable NSString *)message; // `self` will not be able to respond to interaction events
    - (void)lc_showLoadingWithMessage:(nullable NSString *)message position:(LCToastPosition)position disabled:(BOOL)disabled;
    - (void)lc_dismissLoading;
    
    @end
    
    @interface UIView (LCActivityProgress)
    
    - (void)lc_showProgress:(CGFloat)progress;
    - (void)lc_showProgress:(CGFloat)progress message:(nullable NSString *)message;
    - (void)lc_showProgress:(CGFloat)progress message:(nullable NSString *)message position:(LCToastPosition)position;
    - (void)lc_dismissProgress;
    
    @end
    

    new:

    @interface UIView (LCToast)
    
    - (void)lc_showToast:(NSString *)message;
    - (void)lc_showToast:(NSString *)message position:(LCToastPosition)position;
    - (void)lc_showToast:(nullable NSString *)message image:(nullable UIImage *)image position:(LCToastPosition)position;
    - (void)lc_dismissToast;
    - (void)lc_dismissQueueToasts; // only removes the all toasts in the queue.
    
    - (void)lc_dismissAllToasts; // remove all toasts.
    
    @end
    
    @interface UIView (LCActivityToast)
    
    - (void)lc_showActivityToast;
    - (void)lc_showActivityToast:(nullable NSString *)message;
    - (void)lc_showDisabledActivityToast; // `self` will not be able to respond to interaction events
    - (void)lc_showDisabledActivityToast:(nullable NSString *)message; // `self` will not be able to respond to interaction events
    - (void)lc_showActivityToast:(nullable NSString *)message position:(LCToastPosition)position disabled:(BOOL)disabled;
    - (void)lc_dismissActivityToast;
    
    @end
    
    @interface UIView (LCProgressToast)
    
    - (void)lc_showProgressToast:(CGFloat)progress;
    - (void)lc_showProgressToast:(CGFloat)progress message:(nullable NSString *)message;
    - (void)lc_showProgressToast:(CGFloat)progress message:(nullable NSString *)message position:(LCToastPosition)position;
    - (void)lc_dismissProgressToast;
    
    @end
    
    Source code(tar.gz)
    Source code(zip)
  • 1.2.0(Jun 20, 2022)

  • 1.1.0(Jun 9, 2022)

  • 1.0.0(Jun 8, 2022)

Owner
LiuChang
iOS Developer!
LiuChang
A Swift extension that adds toast notifications to the UIView object class.

Toast-Swift Toast-Swift is a Swift extension that adds toast notifications to the UIView object class. It is intended to be simple, lightweight, and e

Charles Scalesse 3.3k Dec 22, 2022
CoffeeToast - A swift package to easily add Toast notifications to your app

CoffeeToast A simple Swift package to add Toast Notifications to your app. Insta

Maegan Wilson 2 Feb 3, 2022
A Swift Toast view - iOS 14 style and newer - built with UIKit. 🍞

Toast-Swift A Swift Toast view - iOS 14 style - built with UIKit. ?? Installation Swift Package Manager You can use The Swift Package Manager to insta

Bastiaan Jansen 216 Jan 4, 2023
A modern iOS toast view that can fit your notification needs

CRToast CRToast is a library that allows you to easily create notifications that appear on top of or by pushing out the status bar or navigation bar.

Collin Ruffenach 4.2k Dec 30, 2022
🍞 Toast for Swift

Toaster Android-like toast with very simple interface. (formerly JLToast) Screenshots Features Queueing: Centralized toast center manages the toast qu

Suyeol Jeon 1.6k Dec 30, 2022
A Simple Toast Library for iOS

PowerplayToastKit Toasts Type Success. Warning Error Info Custom View (Dialog) Example To run the example project, clone the repo, and run pod install

Mithilesh Parmar 18 Jul 2, 2022
Bulletin / 'Toast' style view for tvOS.

KBBulletinView Bulletin / 'Toast' style view for tvOS. This project is an effort to create local application notifications/alerts similar to those use

Kevin Bradley 4 Nov 26, 2022
This is an iOS control for presenting any UIView in an UIAlertController like manner

RMActionController This framework allows you to present just any view as an action sheet. In addition, it allows you to add actions around the present

Roland Moers 542 Dec 5, 2022
BottomSheet makes it easy to add custom bottom sheets to your SwiftUI apps.

BottomSheet About BottomSheet BottomSheet makes it easy to add custom bottom sheets to your SwiftUI apps. The result can look like this...or completel

Daniel Saidi 174 Jan 2, 2023
🍞 An async waiting toast with basic toast. Inspired by facebook posting toast

AwaitToast ?? An async waiting toast with basic toast. Inspired by facebook posting toast. Introduction Usage Default let toast: Toast = Toast.default

DongHee Kang 137 Jul 30, 2022