0

How can I remove the gap on the left side of the view?

enter image description here

I got this solution from: Fit width in iOS 8 Today Extensions

func widgetMarginInsetsForProposedMarginInsets(defaultMarginInsets: UIEdgeInsets) -> UIEdgeInsets {
    return UIEdgeInsetsZero
}

When I put it in viewDidLoad nothing happens. Any ideas why?

Community
  • 1
  • 1
MJQZ1347
  • 2,607
  • 7
  • 27
  • 49

1 Answers1

0

Putting it outside the viewDidLoad method helped.

MJQZ1347
  • 2,607
  • 7
  • 27
  • 49