Last active
January 19, 2019 03:17
-
-
Save Ibrahimhass/f7feced800ba1b0e2d6272a26800d88e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class SwiftViewController: UIViewController { | |
@IBOutlet weak var logoImageView: UIImageView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
if let logo = logoImageView.image { | |
let colorLessLogo = logo.withRenderingMode(.alwaysTemplate) | |
logoImageView.image = colorLessLogo | |
logoImageView.tintColor = UIColor.orange | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment