10 Feb 2019
- Added
completion
closure invoked when alert is presented. If you present an alert fromDispatchQueue.main.async
, you can use this to fulfill an XCTestExpectation for async testing. - Improved README instructions on bridging header for Swift.
01 Jan 2019
- Added
actions
which greatly simplify Swift tests. Instead ofalertVerifier.actionsTitles[0] as? String
, usealertVerifier.actions[0].title
- Added
preferredAction
- Added
textFields
- Share scheme for Carthage builds. Thanks to: Kevin Donnelly
Deprecated:
- Deprecated
actionTitles
and-styleForButtonWithTitle:
. Useactions
instead.
02 Feb 2018
- Changed
animated
from NSNumber to BOOL. - Added
presentingViewController
30 Jan 2018
- Fixed crash when presenting UIDocumentMenuViewController while mocking UIAlertController. Thanks to: Andrei Tulai
06 Mar 2017
- Fixed nullability mistake: actionTitles are non-null.
- Add shared scheme to satisfy latest version of Carthage.
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.
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
24 Dec 2015
- Repackage as Cocoa Touch Framework project.
- Support Carthage.
- CocoaPods: Distinguish between public headers and private headers.
23 Aug 2015
- Initial release. Thanks to Victor Ilyukevich for suggestions, testing, and cleanup.