Last active
August 27, 2017 06:19
-
-
Save pgpt10/6eb158a4c3a0ef2b2e3bf0f75d014bd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if isToHideWidget | |
{ | |
NCWidgetController.widgetController().setHasContent(false, forWidgetWithBundleIdentifier: "YOUR_TODAY_EXTENSION_BUNDLE_IDENTIFIER") | |
} | |
else | |
{ | |
NCWidgetController.widgetController().setHasContent(true, forWidgetWithBundleIdentifier: "YOUR_TODAY_EXTENSION_BUNDLE_IDENTIFIER") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment