Swiftpack.co - chanjima/PopPullDown as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by chanjima.
chanjima/PopPullDown 1.0.0
PopPullDown in Swift
⭐️ 0
🕓 4 weeks ago
iOS
.package(url: "https://github.com/chanjima/PopPullDown.git", from: "1.0.0")

PopPullDown

Version Xcode Swift 5.7.1 License

PopPullDown in Swift

Please note that any additions are at your own risk.

日本語

Example

usage

How to use

import PopPullDown to use it.

import PopPullDown

@IBAction func didTapButton(_ sender: UIButton) {
    let popPuullDown = PopPullDown(sender: sender, direction: .up)
    popPuullDown.popPullDownDelegate = self
    popPuullDown.items = ["Apple", "Banana", "Coconut"]
    popPuullDown.present()
}

If you want to know the result, a delegate is required.

extension ViewController: PopPullDownDelegate {

    func selectedIndex(_ item: String) {
        self.dismiss(animated: true)
        print(item)
    }
}

Button Position

⚠️ If the button position is less than 300, the arrow direction changes automatically.

Installation

Swift Package Manager

TARGET > General > Frameworks, Libraries, and Embedded Content > Press the bottom + button.

addPackege

Features to add

  • Support for cocoaPods
  • Selected checkMark

GitHub

link
Stars: 0
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics