Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlexZverusha/30f1c11af8e0615a873b6055928d4495 to your computer and use it in GitHub Desktop.
Save AlexZverusha/30f1c11af8e0615a873b6055928d4495 to your computer and use it in GitHub Desktop.
UIView.animate
UIView.animate(withDuration: 1.0, animations: { [weak self] in
self?.view.layoutIfNeeded()
})
UIView.animate(withDuration: 0.0, delay: 0.0, options: [.curveEaseOut], animations: {
//self.calendarHeight.constant = self.minCalendarHeight
self.view.layoutIfNeeded()
self.calendarView.layoutIfNeeded()
}) { (suu) in
self.containerViewController?.changeHeight()
}
UIView.animate(withDuration: 1, animations: {
// self.bonacinno.backgroundColor = .brown
}, completion: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment