1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NSPrivacyAccessedAPITypes</key>
|
||||
<array/>
|
||||
<key>NSPrivacyCollectedDataTypes</key>
|
||||
<array/>
|
||||
<key>NSPrivacyTracking</key>
|
||||
<false/>
|
||||
<key>NSPrivacyTrackingDomains</key>
|
||||
<array/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"deploymentTarget": "12"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { UIViewController, UIView, UIWindow, UIScreen, UIColor } from 'UIKit';
|
||||
import { CIFilter } from 'CoreImage';
|
||||
|
||||
let greayUview : UIView | null = null;
|
||||
export function setWindowGrey(ele:any|null=null) {
|
||||
if (UTSiOS.available("iOS 13.0, *")) {
|
||||
let winsize = UIScreen.main.bounds as CGRect;
|
||||
let view = new UIView();
|
||||
view.backgroundColor = UIColor.lightGray
|
||||
|
||||
view.frame = winsize;
|
||||
view.isUserInteractionEnabled = false;
|
||||
view.layer.compositingFilter = "saturationBlendMode"
|
||||
let paret = UTSiOS.getCurrentViewController()
|
||||
greayUview = view;
|
||||
DispatchQueue.main.async(execute = () : void => {
|
||||
paret.view.addSubview(greayUview!)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
export function removeWindowGrey(ele:any|null=null) {
|
||||
DispatchQueue.main.async(execute = () : void => {
|
||||
if (greayUview != null) {
|
||||
greayUview!.removeFromSuperview();
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user