Last active
January 19, 2019 03:17
-
-
Save Ibrahimhass/4b8ab8f5efd1a3721a43047c189f8223 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
//http://swiftify.me/0ivnnp | |
import UIKit | |
class SwiftViewController: UIViewController { | |
@IBOutlet weak var logoImageView: UIImageView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
var logo: UIImage? = logoImageView.image | |
var colorLessLogo: UIImage? = 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