Releases: LeoNatan/LNPopupController
v2.1.2
v2.1.1
v2.1.0
v2.0.3
v2.0.2
v2.0.1
v2.0.0 - Support for iOS 10 Popup Look & Feel
Merge remote-tracking branch 'origin/v2_0' Closes #91 Closes #96
Improved status bar management
v1.4.6 Version 1.4.6
Layout improvements
v1.4.5 iOS 8 split view does not override `viewDidLayoutSubviews`. Fixes #68
Accessibility support
The framework now supports accessibility and will honor accessibility labels, hints and values. By default, the accessibility label of the popup bar is the title and subtitle provided by the popup item.
To modify the accessibility label and hint of the popup bar, set the accessibilityLabel
and accessibilityHint
properties of the LNPopupItem
object of the popup content view controller.
demoVC.popupItem.accessibilityLabel = NSLocalizedString(@"Custom popup bar accessibility label", @"");
demoVC.popupItem.accessibilityHint = NSLocalizedString(@"Custom popup bar accessibility hint", @"");
To add accessibility labels and hints to buttons, set the accessibilityLabel
and accessibilityHint
properties of the UIBarButtonItem
objects.
UIBarButtonItem* upNext = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"next"] style:UIBarButtonItemStylePlain target:nil action:NULL];
upNext.accessibilityLabel = NSLocalizedString(@"Up Next", @"");
upNext.accessibilityHint = NSLocalizedString(@"Double Tap to Show Up Next List", @"");
To modify the accessibility label and hint of the popup close button, set the accessibilityLabel
and accessibilityHint
properties of the LNPopupCloseButton
object of the popup container view controller.
targetVC.popupContentView.popupCloseButton.accessibilityLabel = NSLocalizedString(@"Custom popup button accessibility label", @"");
targetVC.popupContentView.popupCloseButton.accessibilityHint = NSLocalizedString(@"Custom popup button accessibility hint", @"");
To modify the accessibility label and value of the popup bar progress view, set the accessibilityProgressLabel
and accessibilityProgressValue
properties of the LNPopupItem
object of the popup content view controller.
demoVC.popupItem.accessibilityProgressLabel = NSLocalizedString("Custom accessibility progress label", comment: "")
demoVC.popupItem.accessibilityProgressValue = "\(accessibilityDateComponentsFormatter.stringFromTimeInterval(NSTimeInterval(popupItem.progress) * totalTime)!) \(NSLocalizedString("of", comment: "")) \(accessibilityDateComponentsFormatter.stringFromTimeInterval(totalTime)!)"