目录

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
关于
57.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号