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

Mixing SpriteKit and UIKit?

Forums > Swift

@miff  

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?

Thanks

3      

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 :-)

3      

@miff  

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 :)

3      

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.

4      

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!

3      

3      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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.