Latest 0.1.0
Homepage https://github.com/Coimbraa/PopUpViewAlert
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

THIS IS MY FIRST FRAMEWORK! HOPE YOU LIKE IT, AND FIND IT USEFULL, IF YOU SEE ANY BUG LET ME KNOW :)

Version
License
Platform

Example

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

Requirements

Installation

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

pod "PopUpViewAlert"

After install it via cocoaPod, go to your project Target, under "Linked Frameworks and Libraries", add the PopUpViewAlert.framework, then you should be able to import the lib on your file.

import PopUpViewAlert

Attention

[!] Unable to find a specification for PopUpViewAlert

If this error pops Up while running pod install just run the following commands to update repository list in your machine:

pod repo update master

pod setup

pod install

And should be working by now.

Usage

After import the framework to your class:


var popView: View? = nil

override func viewDidLoad() {
    super.viewDidLoad()

        popView = View(origem: 0, type: PopUpOptions.sucess, title: "")
        self.view.addSubview(popView!)
}

With this constructor you will be able to set the origin Y of the pop up, if you want it on the top or on the middle, you can chose.

you can make multiple pop ups appear in the same class, with different types! to do that just use this code when you want it to appear:


self.popView?.handleOptionChange(.sucess, "Your text here",seconds: 4)

Abilities

alt text

In this images, you can see the diferents types and advantages of this framwork.

There are different types of PopUps: Success, danger and error:


self.popView?.handleOptionChange(.sucess, "Your text here",seconds: 4)

self.popView?.handleOptionChange(.danger, "Your text here",seconds: 4)

self.popView?.handleOptionChange(.error, "Your text here",seconds: 4)

and as you can see you are able to set the timmer that the popUp will remain in your screen, and if you touch the popUp view the view will pop out!

Author

Daniel Coimbra, [email protected]

License

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

Latest podspec

{
    "name": "PopUpViewAlert",
    "version": "0.1.0",
    "summary": "This is a framework that will be a lot useful",
    "description": "This library will popup some a view where you can set the context of the view, it can be a successful popupview with a message to let you know what the user have done. It can also be a warnning or a error.",
    "homepage": "https://github.com/Coimbraa/PopUpViewAlert",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Daniel Coimbra": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Coimbraa/PopUpViewAlert.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PopUpViewAlert/Classes/**/*",
    "resource_bundles": {
        "PopUpViewAlert": [
            "PopUpViewAlert/Assets/*.png"
        ]
    },
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This