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

SwiftUI MacOs - any way to determine if main content view is in a tabbed window?

Forums > SwiftUI

I need to adjust some padding specifically when tabs or the tab bar is present in the window my view resides in. Not sure what element / view / controller to query or what key / method to query it for.

This is indirectly caused by me using a custom titlebar. If I could turn off the 'rename' function and other title bar 'bling' then I could revert back to a more standard title... so anything for that route might make the tab question moot.

If curious, I am redoing an App I did like 15 years ago in Objective-C... it is a GUI for JPEGTRAN: https://www.youtube.com/watch?v=QkyqDi9dEqc

2      

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Click to save your free spot now

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.