We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aba8a4 commit 23fe0efCopy full SHA for 23fe0ef
CRBoostSwift/Classes/UIKit+CRBoost.swift
@@ -163,9 +163,9 @@ extension UIView {
163
}
164
165
@discardableResult
166
- public class func loadFromNib<T>(nibName: String, index: Int = 0) -> T where T: UIView {
+ public class func loadFromNib<T>(nibName: String) -> T where T: UIView {
167
let nib = Bundle.main.loadNibNamed(nibName, owner: self, options: [:])
168
- let view = nib![index]
+ let view = nib![0]
169
return view as! T
170
171
0 commit comments