Thanks @seantanly!
A follow-up question: Why would I even need to subscribe to the alert when it’s already dismissing from within the Disposeables.create closure in UIAlertViewController+Rx.swift. This one fires when the close button was tapped. So in the example we’re dismissing twice, aren’t we?
@herrdertoene You’re right that dismiss is being called twice if we’re hooking it to both onComplete and as part of Disposable.
However, we still need to call .subscribe(), if not, the Observable returned from showAlert() will not be exercised, i.e. the closure passed to Observable.create is not executed.
The observable created from the Observable.create is termed a Cold Observable covered in later chapters (Chapter 15 p. 294).