Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- import PlaygroundSupport
- var view = UIView(frame: UIScreen.main.bounds)
- var confettiView: SAConfettiView!
- confettiView = SAConfettiView(frame: view.bounds)
- confettiView.type = .Star
- view.addSubview(confettiView)
- confettiView.startConfetti()
- view.backgroundColor = .red
- PlaygroundPage.current.liveView = view
- PlaygroundPage.current.needsIndefiniteExecution = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement