Thanks Alex as always I LOVE the cool trick at 11:07 !!! That will defo find its way into my project! Something to add at 4:54 : the black/white color can also be accessed with Color.primary which gets the primary color. In light mode it is black and in dark, white. However when you use the foregroundStyle(_:) modifier you are actually setting the primary color. This means if you want to access the black/white in a view where you set the primary foreground color you will need to use the ui color label
Master Gradients in SwiftUI: The Secret Sauce to Stunning App Designs! 👉 th-cam.com/video/l6yULJp8q3g/w-d-xo.html
Thanks Alex as always
I LOVE the cool trick at 11:07 !!! That will defo find its way into my project!
Something to add at 4:54 : the black/white color can also be accessed with Color.primary which gets the primary color. In light mode it is black and in dark, white.
However when you use the foregroundStyle(_:) modifier you are actually setting the primary color.
This means if you want to access the black/white in a view where you set the primary foreground color you will need to use the ui color label