Giter Site home page Giter Site logo

hdnotificationview's Introduction

iOS Version Dependence License

Introduction

HDNotificationView appears notification view like system.

Portrait Screenshot Portrait Screenshot

Requirement

  • iOS 9.0+

Installation

Carthage

github "nhdang103/HDNotificationView"

Manual

  • Add there files below to your project:

    • HDNotificationView.swift
    • HDNotificationData.swift
    • HDNotificationAppearance.swift
  • Add Snapkit as a dependence framework to your project.

Usage

let notiData = HDNotificationData(
            iconImage: UIImage(named: "Icon"),
            appTitle: "Notification View".uppercased(),
            title: "This is a sample of HDNotificationView ⏰",
            message: "This area that you can input some message to notify to user 🔔",
            time: "now")
        
HDNotificationView.show(data: notiData, onTap: nil, onDidDismiss: nil)

License

HDNotificationView is available under the MIT License. See the LICENSE for details.

hdnotificationview's People

Contributors

nhdang103 avatar rajchanchal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hdnotificationview's Issues

Duration and Buttons

It would be very useful if you added a feature to add buttons to the Notification also possible able to change the duration for how long the bar is visible for.

Autolayout

Migrate to handle everything with AutoLayout

Create a pod/Carthage

To use this as a static library wherever.

  • Make a public CocoaPod
  • Carthage as well?

UIDeviceOrientationDidChangeNotification issue

First, sorry to my poor English.

I found unintented bug by UIDeviceOrientationDidChangeNotification.

Code is received message by iOS at App state switching Foreground & Background.

so, code calls [self setUI] and creates Tap gesture and adds view overlap.

finally, when view has tap gesture, view calls onTouch function repeatedly.

Support cocoa pod

I want to install it throw cocoa pod, can you support pod please.
Thanks

On iOS7 it doesn't rotate

Prior iOS8 UIScreen instances doesn't rotate, that means that in iOS7 your HDNotificationViews in landscape they appear only at the upper top corner as they were in Portrait. To handle that you need to apply transformations according to device rotation changes.
From apple doc of UIScreen:
Prior to iOS 8, a screen’s bounds rectangle always reflected the screen dimensions relative to a portrait-up orientation. Rotating the device to a landscape or upside-down orientation did not change the bounds. In iOS 8 and later, a screen’s bounds property takes the interface orientation of the screen into account. This behavior means that the bounds for a device in a portrait orientation may not be the same as the bounds for the device in a landscape orientation. Apps that rely on the screen dimensions can use the object in the fixedCoordinateSpace property as a fixed point of reference for any calculations they must make.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.