From 07a194c80ee3e0789f33c6d91a9e4a1179eb33a0 Mon Sep 17 00:00:00 2001 From: Leandro Alonso Date: Thu, 6 Feb 2020 15:16:42 -0300 Subject: [PATCH] Ensure view is loaded before applying styles To prevent crashes --- Sources/MediaEditor.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/MediaEditor.swift b/Sources/MediaEditor.swift index a4458b7..4d15975 100644 --- a/Sources/MediaEditor.swift +++ b/Sources/MediaEditor.swift @@ -261,6 +261,7 @@ open class MediaEditor: UINavigationController { self?.cancel() } ) + capability.loadViewIfNeeded() capability.apply(styles: styles) currentCapability = capability