Verified Commit 635b0da1 authored by asahiocean's avatar asahiocean 🚀
Browse files

commit

parent a66d5c40
......@@ -30,10 +30,8 @@ extension ViewController {
func buttonsAnimator(state: state) {
let value = view.bounds.maxY * state.rawValue
UIView.animate(withDuration: 0.25, delay: 0, options: [.curveEaseInOut], animations: { [weak self] in
// - - Main button - -
self?.mainButton.frame.origin.y = value
self?.mainButton.layoutIfNeeded()
// - - Clear button - -
self?.clearButton.frame.origin.y = value
self?.clearButton.layoutIfNeeded()
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment