Skip to content

'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. #340

Description

@sagarthecoder

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.

  1. go to Pods project
  2. Select TLPhotoPicker
  3. Build Setting
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions