//
// SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
// SPDX-License-Identifier: GPL-3.0-or-later
import Foundation
extension UIView {
// From https://stackoverflow.com/a/36388769
class func fromNib<T: UIView>() -> T {
// swiftlint:disable:next force_cast
return Bundle(for: T.self).loadNibNamed(String(describing: T.self), owner: nil, options: nil)![0] as! T
}