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
// | |
// Devices.swift | |
// | |
// Created by Daniel Kim on 2018. 7. 10.. | |
// Copyright © 2018년 Daniel Kim. | |
// | |
import Foundation | |
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
// | |
// Devices.swift | |
// | |
// Created by Daniel Kim on 2018. 7. 10.. | |
// Copyright © 2018년 DanielKim. All rights reserved. | |
// | |
// check Device Name and Model and Simulator , Update continuance | |
import Foundation |
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 | |
extension UIImage { | |
func tint(tintColor: UIColor) -> UIImage { | |
return modifiedImage { context, rect in | |
// draw black background - workaround to preserve color of partially transparent pixels | |
context.setBlendMode(.normal) | |
UIColor.black.setFill() |
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
emoto |