Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Commit c343362

Browse files
Pca DevPca Dev
authored andcommitted
Fixed issue where nib would not load from within bundle
1 parent 68b53bf commit c343362

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PCA-iOS-Lib/PCALookupViewController.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ public class PCALookupViewController: UIViewController, UITableViewDataSource, U
66

77
public init(licenseKey: String) {
88
self.key = licenseKey;
9-
super.init(nibName: "PCALookupView", bundle: nil)
9+
let podBundle = Bundle(path: Bundle(for: PCALookupViewController.self).path(forResource: "PCAiOSLib", ofType: "bundle")!)
10+
11+
12+
super.init(nibName: "PCALookupView", bundle: podBundle)
1013
}
1114

1215

0 commit comments

Comments
 (0)