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 | |
public extension UIColor { | |
/** | |
Blend current color with some overlay | |
Source - [JordanDelcros's JS algorithm](https://gist.github.com/JordanDelcros/518396da1c13f75ee057) | |
*/ | |
func blended(with overlay: UIColor) -> UIColor { |
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 | |
public extension UIStatusBarManager { | |
func scrollToTop() { | |
let selector = NSSelectorFromString("handleTapAction:") | |
let action = UIStatusBarTapAction() | |
perform(selector, with: action) | |
} | |
} |