You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oftentimes I need to also animate affine scale. However this one is not supported by stellar. I wrote the following set of extensions to make it uniform with Stellar's syntax.
What are your thoughts? Do you see any systemic issue?
`struct CABasicAnimatedView {
let view: UIView
let animation: CABasicAnimation
}
extension UIView {
func makeAffineUniformScale(from from: CGFloat, to: CGFloat) -> CABasicAnimatedView {
let animation = CABasicAnimation(keyPath: KeyPaths.Transform.scale)
let animatedView = CABasicAnimatedView(view: self, animation: animation)
animatedView.animation.fromValue = from
animatedView.animation.toValue = to
return animatedView
}
What are your thought about this?
Oftentimes I need to also animate affine scale. However this one is not supported by stellar. I wrote the following set of extensions to make it uniform with Stellar's syntax.
What are your thoughts? Do you see any systemic issue?
`struct CABasicAnimatedView {
}
extension UIView {
}
extension CABasicAnimatedView {
}
func CGAffineTransformMakeUniformScale(scale: CGFloat) -> CGAffineTransform {
}`
The text was updated successfully, but these errors were encountered: