Dropper
Dropper copied to clipboard
DropperSelectedRow never called
i followed the instructions to the word and it didn't work then i tried some other variations and it didn't work as well no need for code because i'm doing what you wrote
the framework looks great! i really hope to use it
thanks :)
Hey! I created a new project and followed my instructions again, but I wasn't able to replicate the issue you are having.
Here is my View controller:
class ViewController: UIViewController {
let dropper = Dropper(width: 75, height: 200)
@IBOutlet weak var dropButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func buttonSelected() {
if dropper.status == .hidden {
dropper.items = ["Item 1", "Item 2", "Item 3", "Item 4"] // Item displayed
dropper.theme = Dropper.Themes.white
dropper.delegate = self
dropper.cornerRadius = 3
dropper.showWithAnimation(0.15, options: Dropper.Alignment.center, button: dropButton)
} else {
dropper.hideWithAnimation(0.1)
}
}
}
extension ViewController: DropperDelegate {
func DropperSelectedRow(_ path: IndexPath, contents: String) {
print(path)
print(contents)
}
}