Skip to content

Commit

Permalink
Merge pull request #8 from hiddevdploeg/Last-polishing
Browse files Browse the repository at this point in the history
More examples
  • Loading branch information
hiddevdploeg authored Jul 3, 2023
2 parents f03018a + 1217791 commit a370ce6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"location" : "https://github.com/hiddevdploeg/Billboard.git",
"state" : {
"branch" : "main",
"revision" : "c13a38e1fd54622b5355b6f52c3e1776535868aa"
"revision" : "f03018adc5f92de60a645f6985ef4e4292510a03"
}
}
],
Expand Down
12 changes: 10 additions & 2 deletions Example/BillboardExample/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ struct ContentView: View {
List {
if let advert = allAds.randomElement() {
Section {
SmallBannerAdView(advert:advert)
.listRowInsets(.none)
SmallBannerAdView(advert: advert)
.listRowBackground(Color.clear)
.listRowInsets(.init(top: 0, leading: 0, bottom: 0, trailing: 0))
}
}

Expand Down Expand Up @@ -64,6 +64,14 @@ struct ContentView: View {
}
.font(.system(.body, design: .rounded, weight: .medium))
}
.safeAreaInset(edge: .bottom, content: {
if let advert = allAds.randomElement() {
SmallBannerAdView(advert: advert)
.padding()

}

})
.refreshable {
Task {
if let allAds = try? await BillboardViewModel.fetchAllAds(from: config.adsJSONURL!) {
Expand Down

0 comments on commit a370ce6

Please sign in to comment.