diff --git a/Sources/Core/ScreenshotPreventingView.swift b/Sources/Core/ScreenshotPreventingView.swift index 1648f2a..1cf27f0 100644 --- a/Sources/Core/ScreenshotPreventingView.swift +++ b/Sources/Core/ScreenshotPreventingView.swift @@ -71,14 +71,14 @@ public final class ScreenshotPreventingView: UIView { container.bottomAnchor.constraint(equalTo: bottomAnchor) ]) - guard let contentView = contentView else { return } - setup(contentView: contentView) - DispatchQueue.main.async { // setting secure text entry in init block will fail // setting default value inside main thread self.preventScreenCapture = true } + + guard let contentView = contentView else { return } + setup(contentView: contentView) } // MARK: - 🚌 Public Methods