Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Description

This playground demonstraite flips of content bug in SpriteKit SKView CAMetalLayer framebufferOnly.

Problem

This code cause flip content by Y:

let sceneView = SKView(frame: CGRect(x:0 , y:0, width: 640, height: 480))
...
(sceneView.layer as? CAMetalLayer)?.framebufferOnly = false

Solve

sceneView.transform = CGAffineTransform.identity.scaledBy(x: 1.0, y: -1.0)

About

This playground demonstraite flips of content bug in SpriteKit SKView CAMetalLayer framebufferOnly.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages