readmeのURLを修正
PopPullDown in Swift
Please note that any additions are at your own risk.
日本語
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) } }
⚠️ If the button position is less than 300, the arrow direction changes automatically.
TARGET > General > Frameworks, Libraries, and Embedded Content > Press the bottom + button.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
PopPullDown
PopPullDown in Swift
Please note that any additions are at your own risk.
日本語
Example
How to use
import PopPullDown to use it.
If you want to know the result, a delegate is required.
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.
Features to add