SKView is the UIView subclass Sprite Kit uses to render the currently presented scene's nodes onto. All nodes displayed by Sprite Kit are children (so to speak) of a SKView.
Questions tagged [skview]
136 questions
0
votes
2 answers
Changing view with SKView?
I want to know how to change to a scene when the character collides with the enemy at game over. I have made a scene under main.storyboard and I want to know how to hook it up through code, I only know how to hook it up using buttons but thats not…

Swift101
- 81
- 10
0
votes
0 answers
SWIFT: Update Screen (SKView) now
My app needs a lot of time for initialization. So I created a screen for the user, then I want to show it to him and then I can continue in calculation. But I don't know how to simply start screenupdating. If the process ended it is done…

Peter71
- 2,180
- 4
- 20
- 33
0
votes
2 answers
Thread 1 signal SIGABRT crash when casting UIView to SKView
I have the following code in GameViewController.swift:
override func viewDidLoad() {
super.viewDidLoad()
let scene: GameScene = GameScene()
let currentView = self.view as! SKView
currentView.showsFPS = true
…

Fine Man
- 455
- 4
- 17
0
votes
2 answers
Memory leak with SpriteKit in Collection View Cells
I am using SpriteKit to do animations in UICollectionViewCell's in a UICollectionView. The scene has a single sprite that I'm animating using SKAction's. The contentView of each cell has its own SKView/SKScene. I'm running into a memory leak. When I…

Chris Prince
- 7,288
- 2
- 48
- 66
0
votes
1 answer
How to add a sprite from another .swift file?
I have a project I've been working on for some time. I am using Sprite-Kit but now want to be able to add a child node from a swift file that is different from the GameScene.swift file.
Some of main code from the view controller that loads the…

Narwhal
- 744
- 1
- 8
- 22
0
votes
0 answers
Scene takes 3-4 seconds to be presented. SKScene SKView
From the main menu scene, pressing play to take you to the game happens instantly. However to go from the game back to the main menu scene, takes around 3 to 4 seconds from the moment the user presses the exit button. Is there any reason for this?…

Reece Kenney
- 2,734
- 3
- 24
- 57
0
votes
1 answer
Sprite Kit view setup crash (Swift)
I have an UIView that i want to add a SKScene to. In the step were i declare "skView" it crashes.
var skView=view as SKView;
var skScene=gameScene();
skView.presentScene(skScene)

tim_yng
- 2,591
- 4
- 18
- 20
0
votes
1 answer
Is there an alternative to allowsTransparency in iOS 7?
I have a SKView with the following code
allowsTransparency = true
that it works correctly in iOS 8.0. The problem is... is only available to iOS 8.0 and later.
What can I use in iOS 7.0?
user3914418
0
votes
1 answer
How to lower a UIView element in a SpriteKit scene
I have a regular SpriteKit scene. In fact it is the default scene created from "Sprite Kit" which draws spaceships.
I would like to draw on the background.
I have successfully added a UIImageView as a subview of the main skView. I can draw on this…

Patrick Collins
- 4,046
- 3
- 26
- 29
0
votes
1 answer
SKSpriteNodes in SKView
I am trying to get all the SKSpriteNodes in my SKView to change their alpha. Here's my code:
if let nodes = self.gameSKView.scene!.children as? [SKSpriteNode] {
for node in nodes {
if node.name != "bg" {
…

Apple Ramos
- 265
- 3
- 13
0
votes
0 answers
ios Sprite Kit - How to add a smaller view with close button for example for settings
I want give user the possibility to change some option. So if one touch on a "button" element build by touchevents and SKLableNode, I want to open a smaller modal view with close and other buttons. Has anyone an Idea?
Thanks.

isicom
- 103
- 1
- 12
0
votes
1 answer
SpriteKit memory issues
I'm new to game development with SpriteKit and everything went ok so far, but cant really the memory management part.
I created a first UIViewController to act as a level selector, a second UIViewController in which a present the SKScene of the…

Macaret
- 797
- 9
- 33
0
votes
0 answers
Sprites must be cleaned before switch scenes with SpriteKit and Swift?
There are two scenes(scene1, scene2) in my game, both of them have some sprites.
scene1 will be presented at first with skView.
scene2 will be presented with the same skView when the hero is stronger.
In case the hero is weak, scene1 will be…

Sifeng
- 713
- 9
- 23
0
votes
0 answers
SpriteKit crash on transitionWithView
I have several crash reports with Collection <__NSArrayM: 0x12345678> was mutated while being enumerated. However in my testing I cannot reproduce the error.
This seems be triggered via a chain of events when I transition to a different SKView. …

nacross
- 2,013
- 2
- 25
- 37
0
votes
0 answers
Trouble with mix SKView and NSVew in Cocoa application
In my project I mix SKView with standard NSView objects in 1 window. And now I trying to take some information from SKscene (mouseDown location) and show it in label near skview object.
I tried to use global variables and assign value for it in…

Dude
- 21
- 5