Skip to content

Commit 88abdf5

Browse files
author
Evan Greer
committed
removes redundant set default value function
1 parent aae4b6f commit 88abdf5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

swift-sdk/uicomponents/IterableEmbeddedView.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public class IterableEmbeddedView:UIView {
123123
self.contentView = self.loadViewFromNib()
124124
self.contentView.translatesAutoresizingMaskIntoConstraints = false
125125
self.innerContentView.clipsToBounds = true
126-
self.setDefaultValue()
126+
//self.setDefaultValue()
127127
self.addSubview(self.contentView)
128128

129129
NSLayoutConstraint.activate([
@@ -137,25 +137,25 @@ public class IterableEmbeddedView:UIView {
137137
func loadViewFromNib() -> UIView? {
138138
let nib = UINib(nibName: "IterableEmbeddedView", bundle: Bundle.module)
139139
let view = nib.instantiate(withOwner: self, options: nil).first as? UIView
140-
view?.backgroundColor = UIColor.clear
140+
//view?.backgroundColor = UIColor.clear
141141
self.clipsToBounds = false
142142
return view
143143
}
144144

145145
// MARK: Assign Default Value
146146
///setDefaultValue assign default values to IterableEmbeddedView
147-
func setDefaultValue() {
148-
bannerBackgroundColor = UIColor.white
149-
bannerBorderColor = UIColor(red: 0.88, green: 0.87, blue: 0.87, alpha: 1.00)
150-
bannerBorderWidth = 1.0
151-
bannerCornerRadius = 8.0
152-
primaryBtnColor = UIColor.purple
153-
primaryBtnTextColor = UIColor.white
154-
secondaryBtnColor = UIColor.clear
155-
secondaryBtnTextColor = UIColor.black
156-
titleTextColor = UIColor.black
157-
bodyTextColor = UIColor.darkGray
158-
}
147+
// func setDefaultValue() {
148+
// bannerBackgroundColor = UIColor.white
149+
// bannerBorderColor = UIColor(red: 0.88, green: 0.87, blue: 0.87, alpha: 1.00)
150+
// bannerBorderWidth = 1.0
151+
// bannerCornerRadius = 8.0
152+
// primaryBtnColor = UIColor.purple
153+
// primaryBtnTextColor = UIColor.white
154+
// secondaryBtnColor = UIColor.clear
155+
// secondaryBtnTextColor = UIColor.black
156+
// titleTextColor = UIColor.black
157+
// bodyTextColor = UIColor.darkGray
158+
// }
159159

160160
public func configure(message: IterableEmbeddedMessage, viewType: IterableEmbeddedViewType, config: IterableEmbeddedViewConfig?) {
161161

0 commit comments

Comments
 (0)