diff --git a/uni_modules/uni-usercapturescreen/utssdk/app-ios/index.uts b/uni_modules/uni-usercapturescreen/utssdk/app-ios/index.uts index e9651e383392e5d21b59ec6c8a4bd0aad1d38ed4..1750494f89aa0fb58224108a291fcf09dd9d260d 100644 --- a/uni_modules/uni-usercapturescreen/utssdk/app-ios/index.uts +++ b/uni_modules/uni-usercapturescreen/utssdk/app-ios/index.uts @@ -1,4 +1,5 @@ -import { NotificationCenter } from 'Foundation'; +import { NotificationCenter } from 'Foundation'; +import { CGRect } from "CoreFoundation"; import { UIApplication, UIView, UITextField, UIScreen, UIDevice } from "UIKit" import { UTSiOS, UTSCallback } from "DCloudUTSFoundation" import { DispatchQueue } from 'Dispatch'; @@ -36,7 +37,7 @@ class CaptureScreenTool { } static createSecureView() : UIView | null { - let field = UITextField() + let field = new UITextField(frame = CGRect.zero) field.isSecureTextEntry = true if (field.subviews.count > 0 && UIDevice.current.systemVersion != '15.1') { let view = field.subviews.first