Guest User

Untitled

a guest
Nov 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. func widgetActiveDisplayModeDidChange(_ activeDisplayMode: NCWidgetDisplayMode, withMaximumSize maxSize: CGSize) {
  2. if activeDisplayMode == .compact {
  3. self.preferredContentSize = maxSize
  4. } else if activeDisplayMode == .expanded {
  5. self.preferredContentSize = CGSize(width: maxSize.width, height: 150)
  6. }
  7. }
Add Comment
Please, Sign In to add comment