Got this error ('shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.) inside TLAssetPreviewViewController class and in this line
updatePreferredContentSize(for: asset, isPortrait: UIApplication.shared.orientation?.isPortrait == true)
When I'm using this pods in any App Extension. Though I solved this by following ways.
- go to
Pods project
- Select
TLPhotoPicker
- Build Setting
- set
NO for Require Only App-Extension-Safe-API
But Can you solve this please. Because when I install pod again then everytime I need to solve this error manually.
Got this error (
'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.) insideTLAssetPreviewViewControllerclass and in this lineupdatePreferredContentSize(for: asset, isPortrait: UIApplication.shared.orientation?.isPortrait == true)When I'm using this pods in any App Extension. Though I solved this by following ways.
PodsprojectTLPhotoPickerNOforRequire Only App-Extension-Safe-APIBut Can you solve this please. Because when I install pod again then everytime I need to solve this error manually.