put up a gist that allows you to chain multiple UIView animations without endlessly nesting in completion closures. it's called SequenceAnimation gist.github.com/PimCoumans/4ā¦
please let me know what you think!
ALT Preview of code to use gist:
UIView.animateSteps { sequence in
sequence
.add(delay: 0.5)
.add(duration: 0.2, options: .curveEaseInOut) {
view.transform = CGAffineTransform.init(scaleX: 1.2, y: 1.2)
}
.add(delay: 1)
.add(duration: 0.5, options: .curveEaseIn) {
view.transform = .identity
}
.add(delay: 1)
.add(duration: 0.25) {
view.alpha = 0
}
} completion: { _ in
view.isHidden = true
view.alpha = 1
}
Announcing Flutter Release Preview 1 at GMTC in China! This signals a new phase of development for Flutter as we move into the final stages of stabilization for 1.0
Learn more here ā bit.ly/2JSUL4S