Skip to content

Commit

Permalink
fix platform building errors (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Oguz Yuksel <[email protected]>
  • Loading branch information
OguzYuuksel and Oguz Yuksel authored May 4, 2023
1 parent 3fe3cb0 commit 407b092
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/teufelaudio/FoundationExtensions.git",
"state" : {
"revision" : "550f4fa5176783bf24dc3b82efc2edcf97ecc7f4",
"version" : "0.5.0"
"revision" : "6b9bd39109a1634112c325aa2e4a6a63d58a6254",
"version" : "0.5.1"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PackageDescription

let package = Package(
name: "UIExtensions",
platforms: [.iOS(.v13)],
platforms: [.macOS(.v10_15), .iOS(.v13)],
products: [
.library(name: "UIExtensions", targets: ["UIExtensions"]),
.library(name: "UIExtensionsDynamic", type: .dynamic, targets: ["UIExtensionsDynamic"]),
Expand Down
2 changes: 1 addition & 1 deletion Sources/UIExtensions/Extensions/View+A11y.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SwiftUI

extension View {
public func accessibilityIdentifier<I: AccessibilityIdentifiable>(_ identifier: I) -> ModifiedContent<Self, AccessibilityAttachmentModifier> {
if #available(iOS 14, *) {
if #available(iOS 14, macOS 11, *) {
return accessibilityIdentifier(identifier.typePath)
} else {
return accessibility(identifier: identifier.typePath)
Expand Down
2 changes: 1 addition & 1 deletion Sources/UIExtensions/SwiftUIPreviews/PreviewGuide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public struct PreviewGuide: ViewModifier {
}

public func body(content: Content) -> some View {
if #available(iOS 15.0, *), isRunningInAPreviewCanvas {
if #available(iOS 15.0, macOS 12, *), isRunningInAPreviewCanvas {
content
.background {
guide()
Expand Down

0 comments on commit 407b092

Please sign in to comment.