Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import UIKit
  2. import PlaygroundSupport
  3.  
  4. var view = UIView(frame: UIScreen.main.bounds)
  5. var confettiView: SAConfettiView!
  6. confettiView = SAConfettiView(frame: view.bounds)
  7. confettiView.type = .Star
  8. view.addSubview(confettiView)
  9. confettiView.startConfetti()
  10. view.backgroundColor = .red
  11. PlaygroundPage.current.liveView = view
  12. PlaygroundPage.current.needsIndefiniteExecution = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement