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 UIAction.Identifier { | |
static let primary = UIAction.Identifier(rawValue: "PrimaryAction") | |
} | |
fileprivate extension UIAction { | |
var handler: UIActionHandler? { | |
// Tiny bit sketchy: cast UIAction's "handler" value to a ObjC block | |
typealias ActionHandlerBlock = @convention(block) (UIAction) -> Void |
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
// Based on https://github.com/aheze/VariableBlurView/blob/main/Sources/VariableBlurView.swift | |
import UIKit | |
public protocol ViewBlurring: UIView { | |
var blurRadius: CGFloat? { get set } | |
} | |
extension UIView: ViewBlurring { | |
private var blurRadiusKey: String { "inputRadius" } | |
private var blurFilterName: String { "blurFilter" } |
OlderNewer