Skip to content

Commit a1096bb

Browse files
committed
Adjust code for Swift 6
1 parent 11f5512 commit a1096bb

File tree

6 files changed

+9
-77
lines changed

6 files changed

+9
-77
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<p align="center">
2-
<img src ="Resources/Logo_GitHub.png" alt="MockingKit Logo" title="MockingKit" />
2+
<img src ="Resources/Logo_Rounded.png" alt="MockingKit Logo" title="MockingKit" />
33
</p>
44

55
<p align="center">
66
<img src="https://img.shields.io/github/v/release/danielsaidi/MockingKit?color=%2300550&sort=semver" alt="Version" />
7-
<img src="https://img.shields.io/badge/Swift-5.9-orange.svg" alt="Swift 5.9" />
7+
<img src="https://img.shields.io/badge/Swift-6.0-orange.svg" alt="Swift 6.0" />
88
<img src="https://img.shields.io/github/license/danielsaidi/MockingKit" alt="MIT License" />
99
<a href="https://twitter.com/danielsaidi"><img src="https://img.shields.io/twitter/url?label=Twitter&style=social&url=https%3A%2F%2Ftwitter.com%2Fdanielsaidi" alt="Twitter: @danielsaidi" title="Twitter: @danielsaidi" /></a>
1010
<a href="https://mastodon.social/@danielsaidi"><img src="https://img.shields.io/mastodon/follow/000253346?label=mastodon&style=social" alt="Mastodon: @danielsaidi@mastodon.social" title="Mastodon: @danielsaidi@mastodon.social" /></a>
1111
</p>
1212

1313

14-
1514
## About MockingKit
1615

17-
MockingKit is a Swift SDK that lets you easily mock protocols and classes in `Swift`.
16+
MockingKit is a Swift SDK that lets you easily mock protocols and classes.
1817

1918
MockingKit lets you create mocks of any protocol or class, after which you can `call` functions, `register` dynamic function results, automatically `record` method invocations, and `inspect` all recorded calls.
2019

@@ -81,19 +80,19 @@ calls[0].result // => "gnirts"
8180
mock.hasCalled(\.doStuffRef) // => true
8281
```
8382

84-
For more information, please see the [getting started guide][Getting-Started].
83+
See the online [getting started guide][Getting-Started] for more information.
8584

8685

8786

8887
## Documentation
8988

90-
The [online documentation][Documentation] has more information, articles, code examples, etc.
89+
The online [documentation][Documentation] has more information, articles, code examples, etc.
9190

9291

9392

9493
## Demo Application
9594

96-
The demo app lets you explore the library. To try it out, just open and run the `Demo` project.
95+
The `Demo` folder has an app that lets you explore the library and see how mocks behave.
9796

9897

9998

Resources/Logo_Rounded.png

190 KB
Loading

Sources/MockingKit/MockingKit.docc/MockingKit.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,4 @@ ApiKit is available under the MIT license.
6262

6363
- ``MockNotificationCenter``
6464
- ``MockPasteboard``
65-
- ``MockTextDocumentProxy``
6665
- ``MockUserDefaults``

Sources/MockingKit/Mocks/MockNotificationCenter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import Foundation
1010

1111
/// This class can be used to mock `NotificationCenter`.
12-
open class MockNotificationCenter: NotificationCenter, Mockable {
13-
12+
open class MockNotificationCenter: NotificationCenter, Mockable, @unchecked Sendable {
13+
1414
public lazy var addObserverForNameRef = MockReference(mockAddObserverForName)
1515
public lazy var addObserverWithSelectorRef = MockReference(mockAddObserverWithSelector)
1616
public lazy var postNotificationRef = MockReference(mockPostNotification)

Sources/MockingKit/Mocks/MockPasteboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import UIKit
1313
///
1414
/// This mock only mocks `setData(_:forPasteboardType:)` for
1515
/// now, but you can subclass it and mock more functionality.
16-
open class MockPasteboard: UIPasteboard, Mockable {
16+
open class MockPasteboard: UIPasteboard, Mockable, @unchecked Sendable {
1717

1818
public lazy var setDataRef = MockReference(setData)
1919

Sources/MockingKit/Mocks/MockTextDocumentProxy.swift

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)