takuoka / TKSwarmAlert

Animated alert library like Swarm app.
MIT License
579 stars 56 forks source link

Views aren't straight #8

Open lfarah opened 8 years ago

lfarah commented 8 years ago
screen shot 2016-05-24 at 12 07 41 am

My code:

let width = view.frame.width - 30
let myView1 = UIView(x: 15, y: view.center.y - 50, w: width, h: 60)
myView1.backgroundColor = .redColor()

let myView2 = UIView(x: 15, y: view.center.y - 50, w: width, h: 60)
myView2.backgroundColor = .greenColor()

let myView3 = UIView(x: 15, y: view.center.y - 50, w: width, h: 60)
myView3.backgroundColor = .blueColor()

let alert = TKSwarmAlert()
alert.show(type: .BrightBlur, views: [myView1, myView2, myView3])