Skip to content

Commit 8671174

Browse files
authored
Merge pull request #727 from Iterable/MOB-7609
Resolve constraint issue
2 parents 8e7eaed + 50cd5c1 commit 8671174

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

swift-sdk/Resources/IterableEmbeddedView.xib

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@
3434
<rect key="frame" x="0.0" y="0.0" width="400" height="416"/>
3535
<subviews>
3636
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="WQD-hj-6fI">
37-
<rect key="frame" x="0.0" y="-250" width="400" height="250"/>
38-
<constraints>
39-
<constraint firstAttribute="height" constant="250" id="ngM-lG-nWv"/>
40-
</constraints>
37+
<rect key="frame" x="0.0" y="0.0" width="400" height="0.0"/>
4138
</imageView>
4239
<stackView opaque="NO" contentMode="scaleToFill" alignment="center" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="0Q3-lN-ixZ">
4340
<rect key="frame" x="16" y="16" width="368" height="333.66666666666669"/>

tests/unit-tests/EmbeddedManagerTests.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,10 @@ final class EmbeddedManagerTests: XCTestCase {
240240

241241
let mockApiClient = MockApiClient()
242242
let manager = IterableEmbeddedManager(apiClient: mockApiClient,
243-
urlDelegate: nil,
244-
urlOpener: MockUrlOpener(),
245-
allowedProtocols: [])
243+
urlDelegate: nil,
244+
customActionDelegate: nil,
245+
urlOpener: MockUrlOpener(),
246+
allowedProtocols: [])
246247

247248
let updateDelegate = ViewWithUpdateDelegate(
248249
onMessagesUpdatedCallback: {

0 commit comments

Comments
 (0)