Skip to content

Commit 68126a5

Browse files
committed
Thibaud's feedback
1 parent 3525037 commit 68126a5

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

TeadsSampleApp/Controllers/InRead/AppLovin/ScrollView/InReadAppLovinScrollViewController.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ class InReadAppLovinScrollViewController: AppLovinViewController {
4141
try? settings.registerAdView(bannerView, delegate: self)
4242
}
4343
bannerView.register(teadsAdSettings: settings)
44-
45-
bannerView.frame = CGRect(x: 0, y: 0, width: view.frame.width, height: 250)
46-
44+
4745
// Set background or background color for banners to be fully functional
4846
bannerView.backgroundColor = .clear
49-
slotHeight.constant = 100
47+
slotHeight.constant = 0
5048

5149
addConstraints()
5250

TeadsSampleApp/Controllers/Native/AppLovin/TableView/NativeAppLovinTableViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ extension NativeAppLovinTableViewController: UITableViewDelegate, UITableViewDat
104104
}
105105

106106
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
107-
if elements[indexPath.row] != nil {
108-
return 400
107+
if indexPath.row == 0 {
108+
return 250
109109
}
110-
return 250
110+
return 400
111111
}
112112

113113
}

TeadsSampleApp/Controllers/Native/Mopub/TableView/NativeMopubTableViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ extension NativeMopubTableViewController: UITableViewDelegate, UITableViewDataSo
123123
}
124124

125125
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
126-
if elements[indexPath.row] != nil {
127-
return 400
126+
if indexPath.row == 0 {
127+
return 250
128128
}
129-
return 250
129+
return 400
130130
}
131131

132132
}

0 commit comments

Comments
 (0)