diff --git a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift index d0e64e70..5548a34c 100644 --- a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift +++ b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift @@ -428,6 +428,7 @@ extension TLPhotosPickerViewController { self.allowedLivePhotos = false } self.customDataSouces?.registerSupplementView(collectionView: self.collectionView) + self.navigationBar.delegate = self } private func updatePresentLimitedLibraryButton() { @@ -1309,6 +1310,12 @@ extension TLPhotosPickerViewController { } } +extension TLPhotosPickerViewController: UINavigationBarDelegate { + public func position(for bar: UIBarPositioning) -> UIBarPosition { + return .topAttached + } +} + extension Array where Element == PopupConfigure { var duration: TimeInterval { var result: TimeInterval = 0.1