From be3f52371451699f1aea17f98174b1447b5da87b Mon Sep 17 00:00:00 2001 From: Varun Santhanam Date: Sun, 20 Aug 2023 18:54:32 -0700 Subject: [PATCH] Add platform availability markers --- Sources/SafariView/DismissButtonStyle.swift | 1 + Sources/WebAuthentication/Modifiers.swift | 1 + Sources/WebAuthentication/Presentation.swift | 1 + Sources/WebAuthentication/WebAuthentication.swift | 1 + 4 files changed, 4 insertions(+) diff --git a/Sources/SafariView/DismissButtonStyle.swift b/Sources/SafariView/DismissButtonStyle.swift index a7a5069f5..d71de95d2 100644 --- a/Sources/SafariView/DismissButtonStyle.swift +++ b/Sources/SafariView/DismissButtonStyle.swift @@ -25,6 +25,7 @@ import SafariServices +@available(iOS 14.0, macCatalyst 14.0, *) public extension SafariView { /// An enumeration describing the various dismiss buttons styles available in a ``SafariView`` diff --git a/Sources/WebAuthentication/Modifiers.swift b/Sources/WebAuthentication/Modifiers.swift index 9d9edfcef..1d76e51c9 100644 --- a/Sources/WebAuthentication/Modifiers.swift +++ b/Sources/WebAuthentication/Modifiers.swift @@ -25,6 +25,7 @@ import SwiftUI +@available(iOS 14.0, macCatalyst 14.0, *) public extension View { /// Set the private authentication requirements for authentication sessions within this view. diff --git a/Sources/WebAuthentication/Presentation.swift b/Sources/WebAuthentication/Presentation.swift index 237e23de7..7afe4b0a6 100644 --- a/Sources/WebAuthentication/Presentation.swift +++ b/Sources/WebAuthentication/Presentation.swift @@ -25,6 +25,7 @@ import SwiftUI +@available(iOS 14.0, macCatalyst 14.0, *) public extension View { /// Presents a ``WebAuthentication`` when a binding to a Boolean value that you provide is `true`. diff --git a/Sources/WebAuthentication/WebAuthentication.swift b/Sources/WebAuthentication/WebAuthentication.swift index bdc2f7445..c9e4ad767 100644 --- a/Sources/WebAuthentication/WebAuthentication.swift +++ b/Sources/WebAuthentication/WebAuthentication.swift @@ -27,6 +27,7 @@ import AuthenticationServices import SwiftUI /// A wrapper for `ASWebAuthenticationSession` in SwiftUI +@available(iOS 14.0, macCatalyst 14.0, *) public struct WebAuthentication { // MARK: - Initializers