Skip to content

Commit 8627bb3

Browse files
committed
Resolve git test failure
1 parent 16a5130 commit 8627bb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

swift-sdk/uicomponents/IterableEmbeddedView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public class IterableEmbeddedView:UIView {
181181
}
182182

183183
public init(message: IterableEmbeddedMessage, viewType: IterableEmbeddedViewType, config: IterableEmbeddedViewConfig?) {
184-
super.init(frame: CGRectZero)
184+
super.init(frame: CGRect.zero)
185185
xibSetup()
186186
configure(message: message, viewType: viewType, config: config)
187187
}
@@ -203,7 +203,8 @@ public class IterableEmbeddedView:UIView {
203203
func loadViewFromNib() -> UIView? {
204204
var nib: UINib
205205
#if COCOAPODS
206-
nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.main)
206+
let bundle = Bundle(path: Bundle(for: IterableEmbeddedView.self).path(forResource: "Resources", ofType: "bundle")!)
207+
nib = UINib(nibName: "IterableEmbeddedView", bundle: bundle)
207208
#else
208209
#if SWIFT_PACKAGE
209210
nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.module)

0 commit comments

Comments
 (0)