Skip to content

Releases: LeoNatan/LNPopupController

v2.1.2

02 Jan 22:45
Compare
Choose a tag to compare

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.

v2.1.1

01 Jan 16:12
Compare
Choose a tag to compare
Set the popup bar's image view content mode to aspect fit.

v2.1.0

30 Dec 18:52
Compare
Choose a tag to compare
Adds support for custom popup bars. Fixes some issues. Minor changes …

v2.0.3

20 Dec 14:04
Compare
Choose a tag to compare
Decreased hit area of toolbar buttons. Closes #120

v2.0.2

19 Dec 19:43
Compare
Choose a tag to compare
Possible fix for #117

v2.0.1

04 Dec 13:23
Compare
Choose a tag to compare

Fixes customization issues.

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

02 Dec 19:17
Compare
Choose a tag to compare
Merge remote-tracking branch 'origin/v2_0'

Closes #91
Closes #96

Improved status bar management

01 Dec 21:29
Compare
Choose a tag to compare
v1.4.6

Version 1.4.6

Layout improvements

09 May 14:54
Compare
Choose a tag to compare
v1.4.5

iOS 8 split view does not override `viewDidLayoutSubviews`. Fixes #68

Accessibility support

30 Apr 19:23
Compare
Choose a tag to compare

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)!)"