21 lines
279 B
Swift
21 lines
279 B
Swift
|
|
//
|
||
|
|
// UIView+Utils.swift
|
||
|
|
// App
|
||
|
|
//
|
||
|
|
// Created by James Magahern on 8/5/22.
|
||
|
|
//
|
||
|
|
|
||
|
|
import UIKit
|
||
|
|
|
||
|
|
protocol Conf { }
|
||
|
|
|
||
|
|
extension Conf {
|
||
|
|
@discardableResult
|
||
|
|
func conf(_ block: (Self) -> Void) -> Self {
|
||
|
|
block(self)
|
||
|
|
return self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
extension UIView: Conf {}
|