You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
585 B
21 lines
585 B
//
|
|
// UIImageView+Ext.swift
|
|
// GME Remit
|
|
//
|
|
// Created by InKwon James Kim on 18/09/2019.
|
|
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIImageView {
|
|
func setDropDownImage(tintColor: UIColor) {
|
|
self.image = #imageLiteral(resourceName: "dropdown_white").withRenderingMode(UIImage.RenderingMode.alwaysTemplate)
|
|
self.tintColor = tintColor
|
|
}
|
|
|
|
func setRenderingMode(with color: UIColor, mode: UIImage.RenderingMode = .alwaysTemplate) {
|
|
self.image = image?.withRenderingMode(mode)
|
|
self.tintColor = color
|
|
}
|
|
}
|