Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Releases: jonreid/MockUIAlertController

v3.2.0

11 Feb 03:36
Compare
Choose a tag to compare

Version 3.2.0

10 Feb 2019

  • Added completion closure invoked when alert is presented. If you present an alert from DispatchQueue.main.async, you can use this to fulfill an XCTestExpectation for async testing.
  • Improved README instructions on bridging header for Swift.

v3.1.0

01 Jan 17:30
Compare
Choose a tag to compare

Version 3.1.0

01 Jan 2019

  • Added actions which greatly simplify Swift tests. Instead of alertVerifier.actionsTitles[0] as? String, use alertVerifier.actions[0].title
  • Added preferredAction
  • Added textFields
  • Share scheme for Carthage builds. Thanks to: Kevin Donnelly

Deprecated:

  • Deprecated actionTitles and -styleForButtonWithTitle:. Use actions instead.

v3.0.0

03 Feb 01:29
Compare
Choose a tag to compare

Version 3.0.0

02 Feb 2018

  • Changed animated from NSNumber to BOOL.
  • Added presentingViewController.

v2.0.2

03 Feb 01:28
Compare
Choose a tag to compare

Version 2.0.2

30 Jan 2018

  • Fixed crash when presenting UIDocumentMenuViewController while mocking UIAlertController. Thanks to: Andrei Tulai

v2.0.1

06 Mar 23:23
Compare
Choose a tag to compare

Version 2.0.1

06 Mar 2017

  • Fixed nullability mistake: actionTitles are non-null.
  • Add shared scheme to satisfy latest version of Carthage.

v2.0.0

23 Feb 05:06
Compare
Choose a tag to compare

Version 2.0.0

19 Feb 2017

  • Annotate nullability. The QCOMockAlertVerifier initializer is now non-null, which changes Swift use.
  • Added Swift sample app.
  • Updated example tests to put QCOMockAlertVerifier in test fixture. This is now recommended, to avoid tests which accidentally present real alerts.

v1.1.1

12 Sep 05:06
Compare
Choose a tag to compare

Version 1.1.1

11 Sep 2016

  • Change UIAlertController's actual preferredStyle instead of keeping it in an associated
    property, to avoid UIKit consistency exceptions. Thanks to: nirgin
  • Allow executeActionForButtonWithTitle: even when no handler was set. Thanks to: John Foulkes
  • Don't record presentation of non-alerts. Thanks to: Tom Bates
  • Quiet runtime warning about attempting to load view controller while deallocating.
    Thanks to: Marcelo Fabri

v1.1.0

24 Dec 21:09
Compare
Choose a tag to compare

Version 1.1.0

24 Dec 2015

  • Repackage as Cocoa Touch Framework project.
  • Support Carthage.
  • CocoaPods: Distinguish between public headers and private headers.

v1.0.0

24 Aug 05:30
Compare
Choose a tag to compare

Version 1.0.0

23 Aug 2015

  • Initial release. Thanks to Victor Ilyukevich for suggestions, testing, and
    cleanup.