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

Stack view z MapView Joystick Buttons

Forums > SwiftUI

First of all Thanks very much! This site has been a wealth of information! I Need some direction though. Basically I'd like to build two analogue joystick buttons on screen for my Ipad and have a the view of those buttons zstacked ontop of a Mapview. I'm thinking I can draw an image or images in Illustrator for my buttons with some transparency and then use Spritkit to deploy the buttons via assets folder, but I'm not sure if that's the best approach, given that I found a Joystick app on Github, which uses Spritekit, but I see no way of Zstacking the button views ontop of my mapview and making the background of the Joystick view transparent. For now the application /buttons is to be used to longrange bluetooth to my lawnmore for control so when my lawnmore (GPS) moves I can see th blue dot moves on Mapview.

Even if I start off building a basic gaming app which allows me to do little rings across the screen and has a Hello World I don't see anyway of making the black background transparent and putting a vew behind it. If I could figure out that, then that would help a lot.

2      

Thanks I've kind of figured it out. Still a lot to learn though. I'm getting through the 100 days tutorials, but it's a 100 days. Time waits for no man etc etc. I'm somewhat binge watching it sometimes. When I have the time. I'm not new to programming, just new to SwiftUI. I have not encountered the Mapview Tutorials in the 100 days yet. That's awesome now that I know they are coming though. There's one Mapview on Apples tutorial website, which has helped, but then you look at the Spritekit well at least this demo I have here and it inherits from UIViewController rather than View so this is what was slightly confusing.

One last quesiton if you don't mind answering. The AppDelegate file that comes with a standard games app. This file does not come with a regular swift app. Is it an old way of programming or is there a specific reason that way of programming is in the games app?

Thanks again for the help!

George

2      

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!

Reply to this topic…

You need to create an account or log in to reply.

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.