Skip to content

Commit

Permalink
Fix watchOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Sep 29, 2023
1 parent 6f6b1ab commit 2f6a7db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Airship/AirshipCore/Source/BannerView.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/* Copyright Airship and Contributors */

import SwiftUI

#if canImport(UIKit)
import UIKit
#endif


struct BannerView: View {

Expand Down Expand Up @@ -66,6 +70,8 @@ struct BannerView: View {
}
}

#if !os(watchOS)

private func createBanner(
placement: BannerPlacement,
metrics: GeometryProxy
Expand Down Expand Up @@ -122,6 +128,7 @@ struct BannerView: View {
.constraints(contentConstraints, alignment: alignment, fixedSize: true)
.applyIf(ignoreSafeArea) { $0.edgesIgnoringSafeArea(.all)}
}
#endif

private func resolvePlacement(
orientation: Orientation,
Expand Down

0 comments on commit 2f6a7db

Please sign in to comment.