1
Xcode 놀이터에서 작동하도록 SAConfettiView 프레임 워크를 만들려고합니다. 하지만 위의 코드를 사용하면 색종이 애니메이션이 표시되지 않습니다.Xcode 놀이터에서 SAConfettiView를 실행할 수 없습니다.
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
내가 뭘 잘못하고 있니? Sources
폴더에 ConfettiView.swift
제대로 이미지를로드하지 않기 때문에