|
I have a structure in my View like this
Now my issue is how i can give a background image that shows uniformly over all these overlapping views, is there any way its possible, i have been trying ZSatck and .overlay with no success, any suggestion will be very helpful , thanks... |
|
does not work? |
|
@Hatsushira - i tried , but it does not work, may be some thing wrong on my end , here is the code snippet of what i am dealing with, thanks
|
SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th. Sponsor Hacking with Swift and reach the world's largest Swift community! |
|
Try this: The code in the init makes the background of TableView transparent. Test the effect of ignoresSafeAre() leave it and put it there.
|
|
@Hatsushira - using your above code makes the image appear in the HStack area at the top, but not in any other area of either the VStack or the List , thanks, below is full code with changes you suggested, the init is there ....
|
|
Does this help? https://www.hackingwithswift.com/quick-start/swiftui/how-to-use-images-and-other-views-as-a-backgrounds Searched for it here on the site. |
|
@Hatsushira - thanks, i will try those options out(though i did try the background one), i think i am having quiet a few layers of Views , which are preventing this ... thanks again |
|
No sure exactly what you are after from your description, however for something to appear on top of another view (as suggested by your use of the phrase
|
|
@Greenamberred @Hatsushira - I have been able to pin point the source of problem, its the List, in the below code, as long as i do not add any navigationlink or button in the List View , i can see the background and Hstack Images, all works well, the moment i add items to list view, background below the HStack turns white and no matter what modifier or Stacking i try it just does not show up, what can i do to over come this ... thanks
|
|
Solved - i replaced the List with this code structure -
|
SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.
Sponsor Hacking with Swift and reach the world's largest Swift community!
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.
Link copied to your pasteboard.