UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Mixing SpriteKit and UIKit?

Forums > Swift


Is it good or bad to mix these two?

I don't mean placing Views over SKView, more like (for example: Clash Royale, Archero...) UITabBarController with some views (Shop, Battle, Acheivements...), where the Shop is classic collection view and battle is SpriteKit Scene?



I mean why not if these is reason to.

The SpriteKit scenes themselves are hosted in specialized UIViewControllers and since UITabBarController is just a container for other UIViewControllers, I dont see why it would be a bad idea to have SpriteKit scene on one tab and item shop on the second :-)



Yes, I have the same opinion. But i never find example or anything similar...

Almost three months I develop some game (for client), and when we started to "mix", cpu, memory and energy rise up a lot. So I found on SO, some advices that is not good to mix... make no sense to me also... but it's always better to ask for second opinion :)


To be honest I dont have much experience in SpriteKit but it should be very performant and I dont see better solution than to mix them. SpriteKit is great for games but for building UIs not so much.


I think I might have to do something similar with my current project. I found Paul's Spritekit tutorials on Hacking with Swift very helpful and interesting ...

It's also very easy to mix and match the two!



TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.