Skip to content

Commit 27b7efe

Browse files
authored
Merge pull request #722 from Iterable/evan/MOB-7565-updates-nib-instantiation
[MOB-7565] use bundle.module when loading IterableEmbeddedView
2 parents 056c11a + 886e103 commit 27b7efe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

swift-sdk/uicomponents/IterableEmbeddedView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ public class IterableEmbeddedView:UIView {
188188
}
189189

190190
func loadViewFromNib() -> UIView? {
191-
let bundle = Bundle(for: type(of: self))
192-
let nib = UINib(nibName: "IterableEmbeddedView", bundle: bundle)
191+
let nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.module)
193192
let view = nib.instantiate(withOwner: self, options: nil).first as? UIView
194193
view?.backgroundColor = UIColor.clear
195194
self.clipsToBounds = false

0 commit comments

Comments
 (0)