SwiftUI Colors Are TRICKY... Here's What You NEED to Know!

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 2

  • @rebeloper
    @rebeloper  22 วันที่ผ่านมา +2

    Master Gradients in SwiftUI: The Secret Sauce to Stunning App Designs! 👉 th-cam.com/video/l6yULJp8q3g/w-d-xo.html

  • @danielcrompton7818
    @danielcrompton7818 21 วันที่ผ่านมา

    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