iOS 13 change the default modalPresentationStyle. If you set it to .fullscreen on TatsiPickerViewController before presenting it, the thumbnails are too small, just 50x50px
If you set it to .pageSheet it looks correct with 100x100 thumbnails
It looks like it is caused by AssetsGridViewController.traitCollectionDidChange not being called with modalPresentationStyle =.fullscreen`.
I did some research and found this
If you rely on size changes to build adaptive layouts, you should review your code for iOS 13. UIKit now predicts the initial traits for a view so you cannot assume traitCollectionDidChange will be called when a view is first added to the view hierarchy.
Adding updateCollectionViewLayout() to AssetsGridViewController.viewDidLoad seems to help, but I am not sure it is the best solution.
iOS 13 change the default
modalPresentationStyle
. If you set it to.fullscreen
onTatsiPickerViewController
before presenting it, the thumbnails are too small, just 50x50pxIf you set it to
.pageSheet
it looks correct with 100x100 thumbnailsIt looks like it is caused by
AssetsGridViewController.traitCollectionDidChange
not being called withmodalPresentationStyle =
.fullscreen`.I did some research and found this
Adding
updateCollectionViewLayout()
toAssetsGridViewController.viewDidLoad
seems to help, but I am not sure it is the best solution.