A framework for presenting view controllers as popups of other view controllers, much like the Apple Music and Podcasts apps.
Added support for haptic feedback when interacting with the popup
popupBarPresentingViewController.allowPopupHapticFeedbackGeneration = false
Improved layout in some edge cases
Improved popup bar RTL layout.
Significantly improved popup bar transitions when presented in RTL containers.
Improved LNPopupUI support.
Fixed layout issues with custom popup bar controllers (#551).
Fixed some layout issues with the progress view and RTL (#548)
UITabBarItem.standardAppearance
supportlayoutSubviews
Added support for UITabBarItem.standardAppearance
; the popup bar will correctly inherit the appearance from the tab bar item, if any is present.
Improved safe area inset and layout margin calculation for popup content view controllers.
https://github.com/LeoNatan/LNPopupController/assets/2270433/4c829917-b22a-4f11-ad41-fbc7eb8f61e6
Modernized titleTextAttributes
and subtitleTextAttributes
to use AttributeContainer
in Swift
Changed how Objective C enums are imported into Swift:
LNPopupBarStyle
→ LNPopupBar.Style
LNPopupBarProgressViewStyle
→ LNPopupBar.ProgressViewStyle
LNPopupCloseButtonStyle
→ LNPopupCloseButton.Style
LNPopupInteractionStyle
→ UIViewController.PopupInteractionStyle
LNPopupPresentationState
→ UIViewController.PopupPresentationState
Since this and the previous commit are API changes, bumping the minor version. In most cases, the compiler should give an appropriate “Moved” message to help ease the transition.
Improved SwiftUI support