Skip to content

AlbertoLourenco/OrganicView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cover

A simple view with organic animation.

How to use

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)

Requirements

- iOS 10+
- Swift 5
- Xcode 11

This project uses:

- UIKit
- QuartzCore

In action

preview preview

About

A simple view with organic animation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages