Skip to content

Commit

Permalink
Merge pull request #115 from SFSafeSymbols/work/remove_sdk_workaround
Browse files Browse the repository at this point in the history
Remove unneeded SDK workarounds
  • Loading branch information
StevenSorial committed Feb 21, 2024
2 parents 9afdcd8 + 923d8e0 commit ba8ff2b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public extension NSImage {
self.init(systemSymbolName: systemSymbol.rawValue, accessibilityDescription: description)!
}

// AppIntents serves as a placeholder SDK to check if the macOS 13.0 SDK is available
#if canImport(AppIntents)
/// Creates a symbol image with the system symbol and variable value you specify.
///
/// - Parameter systemSymbol: The `SFSymbol` describing this image.
Expand All @@ -24,7 +22,6 @@ public extension NSImage {
convenience init(systemSymbol: SFSymbol, variableValue value: Double, accessibilityDescription description: String?) {
self.init(systemSymbolName: systemSymbol.rawValue, variableValue: value, accessibilityDescription: description)!
}
#endif
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public extension SwiftUI.Image {
self.init(systemName: systemSymbol.rawValue)
}

// AppIntents serves as a placeholder SDK to check if the iOS 16.0, macOS 13.0, ... SDKs are available
#if canImport(AppIntents)
/// Creates a system symbol image with a variable value.
///
/// - Parameter systemSymbol: The `SFSymbol` describing this image.
Expand All @@ -22,7 +20,6 @@ public extension SwiftUI.Image {
init(systemSymbol: SFSymbol, variableValue: Double?) {
self.init(systemName: systemSymbol.rawValue, variableValue: variableValue)
}
#endif
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public extension UIImage {
self.init(systemName: systemSymbol.rawValue, withConfiguration: configuration)!
}

// AppIntents serves as a placeholder SDK to check if the iOS 16.0, tvOS 16.0, ... SDKs are available
#if canImport(AppIntents)
/// Creates an image object that contains a system symbol image with the configuration and variable value you specify.
///
/// - Parameter systemSymbol: The `SFSymbol` describing this image.
Expand All @@ -41,7 +39,6 @@ public extension UIImage {
convenience init(systemSymbol: SFSymbol, variableValue: Double, configuration: UIImage.Configuration?) {
self.init(systemName: systemSymbol.rawValue, variableValue: variableValue, configuration: configuration)!
}
#endif
}

#endif

0 comments on commit ba8ff2b

Please sign in to comment.