How to mix color in SwiftUI
There's one SwiftUI view modifier for Color that I think pretty neat called mix(with:by:). This allow you to blend two colors and specify how many blending factor you want, 0.5 means the second color is blended exactly the same color as the first one.
In my case, mix really helpful to define some kind of primary accent that I can use in my app alongside with other system colors.