Latest 0.1.0
Homepage https://github.com/vladaccess/NView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

Imitate the native Notification Banner for any alert.
![](https://raw.githubusercontent.com/vladaccess/NView/master/i2.png )

If you use Iphone X make sure View controller-based status bar appearance was set to NO in your info.plist

Requirements

  • iOS 7.0+ / Mac OS X 10.9+
  • Xcode 9.0+, Swift 4.0

Installation

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

pod 'NView', :git => 'https://github.com/vladaccess/NView.git'

Using

// Creating instance
let notification = RNNotificationView()

notification.titleFont = UIFont(name: "AvenirNext-Bold", size: 10)!
notification.titleColor = UIColor.blueColor()
notification.iconSize = CGSize(width: 46, height: 46) // Optional setup
notification.show(withImage: nil,
title: "Title",
message: "Message")

Customizing

You can to create the instance of NotificationView and then setup properties.

  • Icon size. (CGSize(22,22))
    iconSize:CGSize
  • Subtitle text color. (UIColor.white)
    subtitleColor:UIColor
  • Title text color. (UIColor.white)
    titleColor:UIColor
  • Subtitle font. (UIFont.systemFontOfSize(13))
    subtitleFont: UIFont
  • Title font. (UIFont.boldSystemFontOfSize(14))
    titleFont:UIFont
  • The time where RNNotificationView stay on UIView. (4.0)
    duration: TimeInterval

Author

Vlad, [email protected]

License

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

Latest podspec

{
    "name": "NView",
    "version": "0.1.0",
    "summary": "Just a viwe that appear in top",
    "description": "Just a viwe that appear in top fdfdfsfsdfsf",
    "homepage": "https://github.com/vladaccess/NView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Vlad": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/vladaccess/NView.git",
        "tag": "0.1.0"
    },
    "source_files": "Source/**/*.{swift}",
    "frameworks": "UIKit",
    "requires_arc": true,
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This