Skip to content

Commit

Permalink
Update BillboardBannerView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddevdploeg committed Nov 26, 2024
1 parent 5c90047 commit cb8656c
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions Sources/Views/BillboardBannerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,35 +82,32 @@ public struct BillboardBannerView : View {
if !hideDismissButtonAndTimer {
if canDismiss {
Button {
#if os(iOS)
#if os(iOS)
if config.allowHaptics {
haptics(.light)
}
#endif
showAdvertisement = false
} label: {
#if os(visionOS)
Label("Dismiss advertisement", systemImage: "xmark")
.labelStyle(.iconOnly)
.font(.system(.title3, design: .rounded, weight: .bold))
.symbolRenderingMode(.hierarchical)
Label("Dismiss advertisement", systemImage: "xmark")
.labelStyle(.iconOnly)
.font(.system(.title3, design: .rounded, weight: .bold))
.symbolRenderingMode(.hierarchical)
#else
Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
.labelStyle(.iconOnly)
.font(.system(.title2, design: .rounded, weight: .bold))
.symbolRenderingMode(.hierarchical)
.imageScale(.large)
Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
.labelStyle(.iconOnly)
.font(.system(.title2, design: .rounded, weight: .bold))
.symbolRenderingMode(.hierarchical)
.imageScale(.large)
#endif
}
#if !os(tvOS)
.controlSize(.large)
#endif
#if os(visionOS)

#else
#if !os(visionOS)
.tint(advert.tint)

#endif
#endif
} else {
BillboardCountdownView(advert:advert,
totalDuration: config.duration,
Expand Down Expand Up @@ -155,7 +152,7 @@ public struct BillboardBannerView : View {
loadingNewIcon = false
}
}

@ViewBuilder
var backgroundView : some View {
RoundedRectangle(cornerRadius: 16, style: .continuous)
Expand Down

0 comments on commit cb8656c

Please sign in to comment.