Skip to content

Releases: jonreid/ViewControllerPresentationSpy

Fix crash accessing swizzled property on non-swizzled alert

20 Sep 18:00
e58d38a
Compare
Choose a tag to compare

Prevent crash when another view controller tries to access the swizzled popoverPresentationController before the UIAlertController we want to test is created.

Xcode 14 support

08 Jan 00:00
1d7422b
Compare
Choose a tag to compare

Version 7.0.0

07 Jan 2023

Adds @MainActor annotations to spies for Xcode 14 fix. You will need to add @MainActor to any
test suites that use these spies.

Swift Package Manager Support

06 Aug 18:16
34c42a6
Compare
Choose a tag to compare

Version 6.1.0

06 Aug 2022

Now available from Swift Package Manager!

v6.0.0

06 Nov 18:50
349d36f
Compare
Choose a tag to compare

Version 6.0.0

06 Nov 2021

  • Added tvOS support.
  • Packaged pre-built binary as single XCFramework containing 5 architectures:
    • Mac Catalyst
    • iOS device
    • iOS simulator
    • tvOS device
    • tvOS simulator
  • Fixed Xcode 12.5 build errors. Thanks to: Felix Yuan

v5.1.0

08 Oct 03:56
e95e189
Compare
Choose a tag to compare

Version 5.1.0

07 Oct 2020

  • Bump project settings to Xcode 12.
  • Bump minimum deployment target to iOS 10.0.

v5.0.1

22 Aug 02:13
67463b5
Compare
Choose a tag to compare

Version 5.0.1

21 Aug 2020

Fixed to load on iOS 10.3.3 devices.

v5.0.0

31 Jan 01:06
3b29767
Compare
Choose a tag to compare

Version 5.0.0

30 Jan 2020

This release adds diagnostic test failures if verifiers clash.

  • Fail test if code creates multiple instances of any single verifier. This inadvertently undid its
    swizzling, leading to test failures that were tricky to diagnose. Now a failure message provides
    guidance.
  • Also fail if an AlertVerifier and a PresentationVerifier exist simultaneously, since they both
    swizzle UIAlertViewController. This has the potential to change test results, so this is marked as
    a major release.

v4.2.2

13 Sep 21:05
Compare
Choose a tag to compare

Version 4.2.2

13 Sep 2019

Switch to Legacy Build System to try to improve flaky build errors around importing Swift-generated
headers into Objective-C.

v4.2.1

05 Sep 17:09
Compare
Choose a tag to compare

Version 4.2.1

05 Sep 2019

Reduced minimum deployment target to iOS 9.0.

v4.2.0

30 Aug 22:15
Compare
Choose a tag to compare

Version 4.2.0

30 Aug 2019

Added DismissalVerifier to capture calls to dismiss view controller. The Swift version has a
verify method which checks:

  • That the dismissed count is 1.
  • The animated flag.
  • The dismissed view controller, if provided.

Like the other verifiers, it also has a capturedCompletion to capture any production code
completion handler, and a testCompletion so that test code can supply its own completion handler.