Popularity
2.9
Stable
Activity
0.0
Stable
115
4
22

Code Quality Rank: L5
Programming language: Swift
License: MIT License
Tags: UI    
Latest version: v3.0.0

KCSelectionDialog alternatives and similar libraries

Based on the "UI" category.
Alternatively, view KCSelectionDialog alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of KCSelectionDialog or a related project?

Add another 'UI' Library

README

SelectionDialog

Swift 3.0 Version License Platform Build Status

Simple selection dialog inspired from ios-custom-alertview

Preview

Requirements

  • iOS 8.0+
  • Swift 3
  • Xcode 8.0

Installation

CocoaPods

use_frameworks!
pod "SelectionDialog"

Manually

To install manually the KCSelectionDialog in an app, just drag the SelectionDialog/*.swift file into your project.

Usage

Swift

let dialog = SelectionDialog(title: "Dialog", closeButtonTitle: "Close")
dialog.addItem(item: "I have icon :)", icon: UIImage(named: "Icon1")!)
dialog.addItem(item: "I have icon and handler :D", icon: UIImage(named: "Icon2")!, didTapHandler: { () in
    print("Item didTap!")
})
dialog.addItem(item: "I have nothing :(")
dialog.show()

If you want to launch the dialog at the starting point of the app, make sure you put the code inside DispatchQueue.main.async. Otherwise it will not work

override func viewDidLoad() {
    DispatchQueue.main.async {
        let dialog = SelectionDialog(title: "Dialog", closeButtonTitle: "Close")
        dialog.addItem(item: "I have icon :)", icon: UIImage(named: "Icon1")!)
        dialog.addItem(item: "I have icon and handler :D", icon: UIImage(named: "Icon2")!, didTapHandler: { () in
            print("Item didTap!")
        })
        dialog.addItem(item: "I have nothing :(")
        dialog.show()
    }
}


*Note that all licence references and agreements mentioned in the KCSelectionDialog README section above are relevant to that project's source code only.