Skip to content

Commit 2b97281

Browse files
author
“Akshay
committed
An if else condition to SPM vs Cocoapods
1 parent 674006e commit 2b97281

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

swift-sdk/uicomponents/IterableEmbeddedView.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ public class IterableEmbeddedView:UIView {
200200
])
201201
}
202202

203+
// func loadViewFromNib() -> UIView? {
204+
// let nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.module)
205+
// let view = nib.instantiate(withOwner: self, options: nil).first as? UIView
206+
// self.clipsToBounds = false
207+
// return view
208+
// }
209+
203210
func loadViewFromNib() -> UIView? {
204211
var nib: UINib
205212
#if COCOAPODS
@@ -217,6 +224,7 @@ public class IterableEmbeddedView:UIView {
217224
self.clipsToBounds = false
218225
return view
219226
}
227+
220228

221229
public func configure(message: IterableEmbeddedMessage, viewType: IterableEmbeddedViewType, config: IterableEmbeddedViewConfig?) {
222230

0 commit comments

Comments
 (0)