Skip to content

Commit

Permalink
Ensure view is loaded before applying styles
Browse files Browse the repository at this point in the history
To prevent crashes
  • Loading branch information
leandroalonso committed Feb 6, 2020
1 parent d18c499 commit 07a194c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/MediaEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ open class MediaEditor: UINavigationController {
self?.cancel()
}
)
capability.loadViewIfNeeded()
capability.apply(styles: styles)
currentCapability = capability

Expand Down

0 comments on commit 07a194c

Please sign in to comment.