Skip to content

Commit 16a5130

Browse files
committed
resolve build failure
1 parent 774a4c1 commit 16a5130

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

swift-sdk/uicomponents/IterableEmbeddedView.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ public class IterableEmbeddedView:UIView {
205205
#if COCOAPODS
206206
nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.main)
207207
#else
208-
nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.module)
208+
#if SWIFT_PACKAGE
209+
nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.module)
210+
#else
211+
nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.main)
212+
#endif
209213
#endif
210214

211215
let view = nib.instantiate(withOwner: self, options: nil).first as? UIView

0 commit comments

Comments
 (0)