BSDropper
Drop like a hell.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
iOS 10.0+
Swift 4.2 +
How to use
BSDropper is easy to use.
Step 0. import BSDropper
import at where you need
Step 1. Create Instance programmatically as an instance variable
declare and create instance as an instance variable.
Dropper is only supported in a programmatical way.
Step2. Setup Dropper Instance
Decleare an instance method to setup BSDropper instance as below.
Below Icon resources are just images given in sample project. you can change as you wish.
Don't forget you must need to apply it in viewDidLoad.
Step3. Start Observing offset Y
apply observe API and check API at scrollViewDidScroll and scrollViewWillBeginDragging respectively.
That's all. well done on that. :)
You can check how to use it easily through the supported example project. Please check that out if you need.
optionally, use searchBar delegate
There is UITextField designed to be used as search bar, you can use delegate optionally as well.
Installation
BSDropper is available through CocoaPods. To install
it, simply add the following line to your Podfile: