Created
August 26, 2017 17:46
-
-
Save pgpt10/ca3bebb995c1f98f57c52bf35d9cc554 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
func widgetActiveDisplayModeDidChange(_ activeDisplayMode: NCWidgetDisplayMode, withMaximumSize maxSize: CGSize) | |
{ | |
if activeDisplayMode == .expanded | |
{ | |
preferredContentSize = CGSize(width: 0.0, height: 300.0) | |
} | |
else | |
{ | |
preferredContentSize = maxSize | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment