A framework for presenting view controllers as popups of other view controllers, much like the Apple Music and Podcasts apps.
MIT License
Bot releases are hidden (Show)
Published by LeoNatan over 7 years ago
Published by LeoNatan over 7 years ago
Published by LeoNatan over 7 years ago
Published by LeoNatan over 7 years ago
This release requires iOS 9 and above.
Published by LeoNatan over 7 years ago
Fixed iOS 8 support.
Added a settings controller in the demo project to control various aspects of the popup.
This is the last version to support iOS 8. Releases following this will drop iOS 8.
Published by LeoNatan almost 8 years ago
Published by LeoNatan almost 8 years ago
Fix small issue with class collisions.
Published by LeoNatan almost 8 years ago
General bug fixes and improvements.
Please note that bottomDockingViewForPopup
has been renamed to bottomDockingViewForPopupBar
. If you previously implemented bottomDockingViewForPopup
, make sure to rename it appropriately.
Published by LeoNatan almost 8 years ago
Published by LeoNatan almost 8 years ago
Published by LeoNatan almost 8 years ago
Published by LeoNatan almost 8 years ago
Fixes customization issues.
Published by LeoNatan almost 8 years ago
Published by LeoNatan almost 8 years ago
Published by LeoNatan over 8 years ago
Published by LeoNatan over 8 years ago
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)!)"
Published by LeoNatan over 8 years ago
Published by LeoNatan over 8 years ago
Fixed issues with custom bottom docking views and bottom layout guide calculations.