Skip to content

yangjie2/Toasty-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toasty

A toast framework writen in swift for iOS with very simple interface.

Features

  • One toast is an Operation object, ToastCenter manages all toast with an operation queue.
  • simple interface.
  • Customizable
  • UIAccessibility: VoiceOver support.

Installation

iOS 9 +

CocoaPods

pod 'Toasty-Swift'

Getting Started

Toast(text: "hello toasty." ,position: .center, superView: self.view).show()

or

self.view.makeToast(text: "hello toasty.",position: .top)

You can remove all toasts:

ToastCenter.default.cancelAll()

Or cancel a toast:

Toast(text: "hello toasty." ,position: .center, superView: self.view).cancel()

Accessibility

By default, VoiceOver with UIAccessibility is enabled. To disable it:

ToastCenter.default.supportVisionAccessibility = false

License

See LICENSE file for more info.

About

A swift toast framework for iOS .

Resources

License

Stars

Watchers

Forks

Packages

No packages published