Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnlui/SwiftNotice
GUI library for displaying various popups (HUD), written in pure Swift.
https://github.com/johnlui/SwiftNotice
hud ios swift
Last synced: 3 months ago
JSON representation
GUI library for displaying various popups (HUD), written in pure Swift.
- Host: GitHub
- URL: https://github.com/johnlui/SwiftNotice
- Owner: johnlui
- License: mit
- Created: 2015-04-15T13:14:38.000Z (over 9 years ago)
- Default Branch: swift4
- Last Pushed: 2019-10-10T15:38:53.000Z (about 5 years ago)
- Last Synced: 2024-04-24T14:48:26.982Z (6 months ago)
- Topics: hud, ios, swift
- Language: Swift
- Homepage:
- Size: 1.01 MB
- Stars: 838
- Watchers: 23
- Forks: 140
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - SwiftNotice - SwiftNotice is a GUI library for displaying various popups (HUD) written in pure Swift, fits any scrollview. (UI / Alert & Action Sheet)
- awesome-ios-star - SwiftNotice - SwiftNotice is a GUI library for displaying various popups (HUD) written in pure Swift, fits any scrollview. (UI / Alert & Action Sheet)
README
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](https://raw.githubusercontent.com/johnlui/SwiftNotice/master/SwiftNotice.gif)
## Pretty easy to use
In any subclass of UIView, UIScrollView, UIViewController, UITableViewController, UITableViewCell:
```swift
self.pleaseWait()self.noticeTop("OK!")
self.noticeSuccess("Success!")
self.noticeError("Error!")
self.noticeInfo("Info")self.noticeOnlyText("Only Text")
self.clearAllNotice() // clear
```[Read the documentation](https://github.com/johnlui/SwiftNotice/wiki) 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](https://github.com/johnlui/SwiftNotice/releases/tag/v3.1)## Contribution
You are welcome to fork and submit pull requests.
## License
SwiftNotice is open-sourced software licensed under the MIT license.