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
1
vote
0 answers
XCode SpriteKit template is not rendering fullscreen
In XCode, I created a new Game Project using SpriteKit and when running in Simulator, all I see is an SKView with a Hello Label. And that SKView I'm afraid occupies only 2/3rd of the screen.
I added a red border to the SKView and it now looks like…

Jugs
- 43
- 8
1
vote
0 answers
How to make part of a view controller SKScene and use both on the same screen?
I try to make a view controller, where i.e top half of the screen is SKScene, and bottom half of the screen is normal scene, I mean with buttons etc. Is this possible? I created a Single View application, and I am adding some code snippets below,…

Anthon Santhez
- 402
- 1
- 7
- 13
1
vote
0 answers
Does SpriteKit SKView have a size limit?
I had a problem,When I set up a larger width than screen for SKView, my skview just disappear.
If I setup SKView like this, it's visible:
SKView *skview = [[SKView alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width,…

Alison wu
- 11
- 1
1
vote
1 answer
SKView presentScene fails with transition
I'm having what appears to be a problem similar to the one posted here: In SpriteKit presentScene Transition, won't work. However, presentScene does, however the source of the problem (switching from one VC to another) doesn't seem to apply.
Here's…

William Millington
- 36
- 6
1
vote
1 answer
SpriteKit: modify SKScene frame programmatically
I want to modify the size of SKScene but I have figure out how to do it. I have figure out how change the size but it square taking the smallest size of the screen:
func makeScene() -> SKScene {
let minimumDimension = min(view.frame.width,…

user2924482
- 8,380
- 23
- 89
- 173
1
vote
1 answer
Swift - Call a SKAction (in class) from an IBAction Button
I'm a newbie with Swift - after searching so much hours, I need help from you professionals :D
Planing a small IOS App with Swift, this is the structure:
GameViewcontroller
GameScene
In GameScene, I placed a little image:
class GameScene: SKScene…

Joe
- 21
- 1
- 3
1
vote
1 answer
Spritekit Scene content is zoomed in
I am presenting a Game Controller/Game Scene programmatically from a View Controller (which passes a difficulty string to it) like so :
class GameController: UIViewController {
var difficulty: String!
override func loadView() {
…

Herakleis
- 513
- 5
- 21
1
vote
0 answers
Swift3: UISwipeGestureRecognizer in only one of putatively many SKViews
Note:
Prior to asking this question I have viewed and attempted solutions posted for the following questions:
gesture recognizer with sprite kit and swift
Swift3 iOS - How to make UITapGestureRecognizer trigger function
how to add a gesture to…

SumNeuron
- 4,850
- 5
- 39
- 107
1
vote
1 answer
subclassed SKLabelNode to present scene, how?
I have a subclass of SKLabelNode that's instanced three or four times, each with a name, and a destination:
//
import SpriteKit
class MenuButton: SKLabelNode {
var goesTo = SKScene()
override init() {
super.init()
…

Confused
- 6,048
- 6
- 34
- 75
1
vote
2 answers
Create \(Use) SKView as \(in a) factory \(static class)
I want to make an SKView I can use as a factory to make SKShapeNodes and "render" them to textures.
But I can't find how I would initialise such a thing, and am having no luck, at all.
How do I make a standalone SKView for this purpose?
Or is there…

Confused
- 6,048
- 6
- 34
- 75
1
vote
1 answer
How to make an SKView's background color clear
Hey i have a SubView that is a SKView and its on my controllers main view which is also an skview. So basically the subView-SkView is on the scene perfectly but the square frame of the subview skview stays like a fogy grey/smokey color. The only way…

Hunter
- 107
- 1
- 10
1
vote
2 answers
UILabel does not appear on SKScene
I am trying to create a label on my SKScene but it is not appearing. I don't know what is wrong. The code seems perfectly fine:
class end: SKScene {
var label = UILabel()
override func didMoveToView(view: SKView) {
…

Osaama Shehzad
- 147
- 1
- 2
- 12
1
vote
1 answer
Center SKView in UIViewController: Swift
I'm using the following code to load an SKView on the view controller. However, when you first load the app the buttons, labels etc. In the scene show up at the very bottom left. But, in the game when you return to the scene, it's centered, how…

Nick Griffith
- 492
- 1
- 6
- 15
1
vote
1 answer
Adding SKScene to a UICollectionViewCell lowers scrolling performance
I am trying to add a SKScene with a simple animation to a UICollectionCell.
I've got my SKView setup in the .xib file of the collection view cell.
If I run it and scroll, it works as expected. But if I change to a different view controller (in a…

jonypz
- 1,515
- 1
- 20
- 35
1
vote
0 answers
iOS - when SKView Controller added as Parent to normal ViewController buttons not working on Child Controller
I have iOS application developed with around 8 ViewControllers & it's working fine. I want to add SKView on top of entire app & all viewController, so I did following
I created a ParentController & added SkView in to it
a
- (void)viewDidLoad…

Paresh Indulkar
- 13
- 4