LNPopupController

A framework for presenting view controllers as popups of other view controllers, much like the Apple Music and Podcasts apps.

MIT License

Stars
3K
Committers
18

Bot releases are hidden (Show)

LNPopupController - v2.2.3

Published by LeoNatan over 7 years ago

LNPopupController - v2.2.2

Published by LeoNatan over 7 years ago

LNPopupController - v2.2.1

Published by LeoNatan over 7 years ago

LNPopupController - v2.2.0

Published by LeoNatan over 7 years ago

This release requires iOS 9 and above.

LNPopupController - v2.1.5

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.

LNPopupController - v2.1.4

Published by LeoNatan almost 8 years ago

LNPopupController - v2.1.3

Published by LeoNatan almost 8 years ago

Fix small issue with class collisions.

LNPopupController - v2.1.2

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.

LNPopupController -

Published by LeoNatan almost 8 years ago

LNPopupController - v2.1.0

Published by LeoNatan almost 8 years ago

LNPopupController - v2.0.3

Published by LeoNatan almost 8 years ago

LNPopupController - v2.0.2

Published by LeoNatan almost 8 years ago

LNPopupController - v2.0.1

Published by LeoNatan almost 8 years ago

Fixes customization issues.

LNPopupController - v2.0.0 - Support for iOS 10 Popup Look & Feel

Published by LeoNatan almost 8 years ago

LNPopupController - Improved status bar management

Published by LeoNatan almost 8 years ago

LNPopupController - Layout improvements

Published by LeoNatan over 8 years ago

LNPopupController - Accessibility support

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)!)"
LNPopupController - Add support for split view controllers

Published by LeoNatan over 8 years ago

LNPopupController - v1.4.1

Published by LeoNatan over 8 years ago

Fixed issues with custom bottom docking views and bottom layout guide calculations.

LNPopupController -

Published by LeoNatan over 8 years ago

Package Rankings
Top 8.17% on Proxy.golang.org
Top 15.92% on Carthage
Top 7.18% on Swiftpackageindex.com
Top 7.02% on Cocoapods.org
Badges
Extracted from project README
GitHub release GitHub stars GitHub license GitHub issues GitHub contributors Swift Package Manager compatible Carthage compatible Star History Chart
Related Projects