A simple view with organic animation.
First of all, you'll need to create a MorphConfig object to set all of animation attributes.
let config = MorphConfig(size: CGSize(width: view.bounds.width + 200,
height: view.bounds.height + 200),
duration: 10,
rotationEnabled: true,
colorsStart: colorsStart,
colorsEnd: colorsEnd,
backgroundColor: .clear)And after that, you can implement the animation using Storybord or view code.
- Storyboard:
@IBOutlet private weak var vwOrganic: OrganicView!
// ...
self.vwOrganic.apply(config: config)- View code:
let vwOrganic = OrganicView()
vwOrganic.apply(config: config)
view.addSubview(vwOrganic)- iOS 10+
- Swift 5
- Xcode 11
- UIKit
- QuartzCore


