Clear / Transparent background for NavigationSplitView #378
Unanswered
mikechambers
asked this question in
Q&A
Replies: 1 comment
-
ok. Here is what I have thus far:
and
I i set the color to something like blue, then everything except title bar is blue: However, if I set to clear, it doesnt work for sidebar / titlebar: (The image is the background in a zstack) I feel like im getting close, just missing something obvious. btw, I am able to set the opacity on the views, but then that also sets the opacity for the content. Edit I posted a simplified project here with current code: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use the library to set the background of a navigation split view to be clear / transparent on MacOS
Looking at code here, which does it:
https://stackoverflow.com/questions/74838683/is-there-any-way-to-make-navigationsplitviews-side-bar-with-clear-background
But this seems to be out of date now, and im having trouble finding how to set the background color to clear (Im not as familiar with UIKit). Any tips, suggestions or pointers?
I also saw this post:
https://github.com/davdroman/NavigationSplitViewRemoveBackgrounds/blob/main/NavigationSplitViewRemoveBackgrounds.swiftpm/MyApp.swift
but that is iOS and im having trouble getting it working on MacOs
Beta Was this translation helpful? Give feedback.
All reactions