Kyle Hickinson's Avatar

Kyle Hickinson

@kylehickinson.bsky.social

iOS Developer

11 Followers  |  118 Following  |  3 Posts  |  Joined: 06.02.2024  |  1.7107

Latest posts by kylehickinson.bsky.social on Bluesky

Post image

A better look at comparing the two (UIColor on the left, Color on the right), definitely a gradient still for both, but UIColor's redColor is darker than SwiftUI's

09.07.2025 02:53 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A screenshot that contains sample code drawing two SF Symbols, one using SwiftUI and one in UIKit, showing the same color gradeints

A screenshot that contains sample code drawing two SF Symbols, one using SwiftUI and one in UIKit, showing the same color gradeints

The gradient is still being applied when you do imageView.tintColor = .red, it's just that the UIColor.red and Color.red aren't the same colors so it looks different and is harder to tell. When you use UIColor(Color.red) as the tint it still works as seen here:

09.07.2025 02:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Believe it or not, its a difference between Color and UIColor! If you use Color(uiColor: .red) in the SwiftUI you'll get 2, if you use UIColor(Color .red) as the tintColor on the UIImageView you'll get 1

09.07.2025 02:23 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

@kylehickinson is following 20 prominent accounts