Latest 0.1.6
Homepage https://github.com/fish-yan/FYNotification
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

FYNotification is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "FYNotification"

How to use

configure notification style

/** configure notification
  * 
 */
FYNotification.configure(backgroundColor: UIColor.black, textColor:UIColor.white, fontSize: 15)

add a notification with statsu, duration and message

/** show notification
  * status: FYNotificationStatus (success, error, warning, other. other hasn't status image)
  * message: String
  * duration: TimeInterval (Notification display time)
 */
FYNotification.show(status: .success, message: "操作成功", duration: 2)

dismiss notification

/** notification disappear immediately
  *
 */
FYNotification.dismiss()

Author

fish-yan, [email protected]

License

FYNotification is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "FYNotification",
    "version": "0.1.6",
    "summary": "A notification from top.",
    "description": "u8fd9u662fu4e00u4e2au7b80u5355u7684u72b6u6001u901au77e5, u5305u542bsuccess, warning, error, otheru56dbu79cdu72b6u6001",
    "homepage": "https://github.com/fish-yan/FYNotification",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "fish-yan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fish-yan/FYNotification.git",
        "tag": "0.1.6"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "FYNotification/Classes/*.*",
    "resource_bundles": {
        "FYNotification": [
            "FYNotification/Assets/*.png"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This