In my app I'd like to implement a circle made with PaintCode (Stylekit
) in SKScene
.
This is my code:
import SpriteKit
import GameplayKit
class GameScene: SKScene {
override init(size: CGSize) {
super.init(size: size)
StyleKit.drawCanvas1()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func didMove(to view: SKView) {
}
}
How can I resolve this problem?
you might build the
SKSpriteNode
in this way: