The .tint modifier in SwiftUI writes to the environment and propagates to all child views, not just the immediate target. A production bug emerged three weeks after deployment when buttons deep in a navigation stack inherited an unintended tint color. The fix involved removing global tint declarations and applying the modifier

1m watch time

Sort: