Skip to content

Commit

Permalink
fix #331
Browse files Browse the repository at this point in the history
  • Loading branch information
azone authored and tilltue committed Nov 25, 2021
1 parent a32d361 commit 2d187f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ extension TLPhotosPickerViewController {
self.allowedLivePhotos = false
}
self.customDataSouces?.registerSupplementView(collectionView: self.collectionView)
self.navigationBar.delegate = self
}

private func updatePresentLimitedLibraryButton() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d187f8

Please sign in to comment.