GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - appus-studio/Notification-AlertView

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
APNotificationAlertView
APNotificationAlertView
 
 
Resource
Resource
 
 
demo
demo
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
NotificationAlertView.podspec
NotificationAlertView.podspec
 
 
README.md
README.md
 
 

Repository files navigation

APNotificationAlertView

Made by Appus Studio

'APNotificationAlertView' allow you to show any view as popup notification with cube transform. Developed for easy extension and flexible integration.:point_up:

  • Setup
  • Demo usage
  • Popup with custom view
  • Question popup
  • Dialog popup
  • Text popup
  • Info

#Setup

pod 'NotificationAlertView'

Demo usage

##Popup with custom view

As a popup may be used any view for example view configured from storyboard

let popup = APNotificationAlertView.popupWithView(self.samplePopupView)

popup.show()

change height or popup position

let popup = APNotificationAlertView.popupWithView(self.samplePopupView)

popup.position = APNotificationAlertViewPosition.Bottom

popup.height = 150

popup.show()

##Question popup

Popup with text and Yes/No options. Use customCompletionHandler to get presed option index (Yes:0 No:1)

let question = "Lorem ipsum dolor sit amet?"

let popup = APNotificationAlertView.popupWithQuestion(question)

popup.customCompletionHandler = {

    (index: Int) -> Void in

    APNotificationAlertView.hideAnimated(true)

    print("Taped button at index: \(index)")

}

popup.show()

##Dialog popup

Popup with text and warious number of options. Use customCompletionHandler to get presed option index

let question = "Lorem ipsum dolor sit amet?"

let buttonTitles = ["Yes", "No", "Oh No!"]

let popup = APNotificationAlertView.popupDialogWithText(question, options: buttonTitles)

popup.customCompletionHandler = {

    (index: Int) -> Void in

    APNotificationAlertView.hideAnimated(true)

    let alert = UIAlertController(title: "Taped button", message: "at index: \(index)", preferredStyle: .Alert)

    alert.addAction(UIAlertAction(title: "Ok",
    style: UIAlertActionStyle.Default,
    handler: { (action) -> Void in

        alert.dismissViewControllerAnimated(true, completion: nil)

    }))

    self.presentViewController(alert, animated: true, completion: nil)   

}

popup.animationDuration = 1

popup.show()

##Text popup

Simple popup with text. Use hideAfterDelay property or outer action to hide

let popup = APNotificationAlertView.popupWithText("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.")

popup.hideAfterDelay = 3

popup.animationDuration = 1

popup.show()

Developed By

  • Alexey Kubas, Andrey Pervushin, Appus Studio

License

Copyright 2015 Appus Studio.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

24 stars

Watchers

5 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.