Skip to content

Swift UIView subclass that flips like a double-sided coin between two views.

Notifications You must be signed in to change notification settings

seamusapple/FlipView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

FlipView

Swift UIView subclass that flips like a double-sided coin between two views.

FlipView

Usage

Add FlipView.swift into your project

Creat the FlipView

let flipView = FlipView()

self.view.addSubview(flipView)

flipView.frame = CGRect(x: 125, y: 100, width: 100, height: 100)

Set the primaryView and SecondaryView

flipView.primaryView.image = UIImage(named: "surfingCamp")

flipView.secondaryView.image = UIImage(named: "pokemon2")

Start to flip

startFlip()

##Jianshu FlipView With AutoLayout

About

Swift UIView subclass that flips like a double-sided coin between two views.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages