mirror of
https://github.com/joncardasis/ChromaColorPicker.git
synced 2024-11-29 11:15:55 +03:00
19 lines
348 B
Swift
19 lines
348 B
Swift
//
|
|
// UIView+Utils.swift
|
|
// ChromaColorPicker
|
|
//
|
|
// Created by Jon Cardasis on 9/8/19.
|
|
// Copyright © 2019 Jonathan Cardasis. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
internal extension UIView {
|
|
|
|
/// Forces the view to layout synchronously and immediately
|
|
func layoutNow() {
|
|
setNeedsLayout()
|
|
layoutIfNeeded()
|
|
}
|
|
}
|