1

I have an existing app and i want to release a version to support IOS10 devices. The problem is that my app today widget not is supporting the new today view in IOS10 and i want to disable the today widget to all IOS10 users. It it possible? I already tried to set to today widget to Base SDK of 9.3 from XCode build settings and it didn't work Thanks!

alonraiz
  • 108
  • 1
  • 6

1 Answers1

4

You can show/hide the widget from within you Containing App based on your requirement.

    if #available(iOSApplicationExtension 10.0, *)
    {
        DispatchQueue.main.async(execute: {
            NCWidgetController.widgetController().setHasContent(false, forWidgetWithBundleIdentifier: "YourWidgetBundleIdentifier")
        })
    }
PGDev
  • 23,751
  • 6
  • 34
  • 88