TabPickerViewController: Refactor to not reference tab controller directly.
This commit is contained in:
20
App/Utilities/UIView+Utils.swift
Normal file
20
App/Utilities/UIView+Utils.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// 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 {}
|
||||
Reference in New Issue
Block a user