Skip to content

Commit 86cd79f

Browse files
committed
feat: oh my ads - small adjusts
Signed-off-by: Lessica <82flex@gmail.com>
1 parent 4aaa9a2 commit 86cd79f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

TrollFools/AppListCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ struct AppListCell: View {
141141
if #available(iOS 15.0, *) {
142142
Text(highlightedId)
143143
.font(.subheadline)
144-
.lineLimit(2)
144+
.lineLimit(app.isAdvertisement ? 2 : 1)
145145
} else {
146146
Text(app.id)
147147
.font(.subheadline)
148-
.lineLimit(2)
148+
.lineLimit(app.isAdvertisement ? 2 : 1)
149149
}
150150
}
151151

TrollFools/AppListView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ struct AppListView: View {
138138
}
139139

140140
Section {
141-
if !appList.isPaidProductInstalled {
142-
advertisementButton
141+
if #available(iOS 15, *) {
142+
if !appList.isPaidProductInstalled {
143+
advertisementButton
144+
}
143145
}
144146

145147
filteredAppList(appList.trollApplications)

0 commit comments

Comments
 (0)