Skip to content

Commit

Permalink
fix Swift 5.9 features
Browse files Browse the repository at this point in the history
  • Loading branch information
NikSativa committed Sep 18, 2024
1 parent 6656208 commit 09a0957
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/Helpers/Image+Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public extension Image {
}

public extension Image.spry {
#if os(macOS) && swift(>=5.9)
#if os(macOS) && swift(>=6.0)
nonisolated(unsafe) static let testImage: Image = .init(systemSymbolName: "circle", accessibilityDescription: nil)!
nonisolated(unsafe) static let testImage1: Image = .init(systemSymbolName: "square", accessibilityDescription: nil)!
nonisolated(unsafe) static let testImage2: Image = .init(systemSymbolName: "diamond", accessibilityDescription: nil)!
Expand Down
6 changes: 3 additions & 3 deletions Source/Spy/SpyableImpl.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Foundation

/// A global NSMapTable to hold onto calls for types conforming to Spyable. This map table has "weak to strong objects" options.
///
/// - Important: Do NOT use this object.
// A global NSMapTable to hold onto calls for types conforming to Spyable. This map table has "weak to strong objects" options.
//
// - Important: Do NOT use this object.
#if swift(>=6.0)
private nonisolated(unsafe) var callsMapTable: NSMapTable<AnyObject, SpryDictionary<RecordedCall>> = NSMapTable.weakToStrongObjects()
#else
Expand Down
6 changes: 3 additions & 3 deletions Source/Stub/StubbableImpl.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Foundation

/// A global NSMapTable to hold onto stubs for types conforming to Stubbable. This map table has "weak to strong objects" options.
///
/// - Important: Do NOT use this object.
// A global NSMapTable to hold onto stubs for types conforming to Stubbable. This map table has "weak to strong objects" options.
//
// - Important: Do NOT use this object.
#if swift(>=6.0)
private nonisolated(unsafe) var stubsMapTable: NSMapTable<AnyObject, SpryDictionary<StubInfo>> = NSMapTable.weakToStrongObjects()
#else
Expand Down

0 comments on commit 09a0957

Please sign in to comment.