Floating is a very flexible overlay library.
- iOS 10.0+
- Xcode 9.2+, Swift 4.1
pod 'Floating'github "hirohisa/Floating"
func didTapButton(_ sender: UIButton) {
let floatingView = FloatingView(textField)
floatingView.present(from: sender.frame)
}// State
enum Floating.State {
case willPresent
case didPresent
case willDismiss
case didDismiss
}
floatingView.handler = { (state: State, object: T) in
print(state)
print(object)
}Floating is available under the MIT license.