overshare/overshare-kit — pull request #51 by samingle (2014-04-10 22:17:23+00:00)
Title: OSKEmailActivity & OSKSMSActivity can publish items with attachments, bu...

If a ActivitySheet is shown for shareable content with an image, but no captions, isReadyToPerform will return false, but the action will still happen. For SMS messages, the option to close the modal will also disappear. This patch checks the number of attachments in addition to the content length, and proceeds if either satisfy.

To reproduce:

OSKShareableContent * content = [OSKShareableContent contentFromImages:images caption:nil];
OSKActivitiesManager *manager = [OSKActivitiesManager sharedInstance];
[[OSKPresentationManager sharedInstance] presentActivitySheetForContent:content presentingViewController:self options:nil];