Skip to content

Instantly share code, notes, and snippets.

@choco0908
choco0908 / TestProject.swift
Created July 7, 2022 12:35
swift 주석 작성 테스트
//
// TestClass.swift
// TestProject
//
// Created by hgkwon on 2022/07/07.
//
import Foundation
/**
@choco0908
choco0908 / PreventScreenCapture.swift
Created October 18, 2023 06:51
Prevent iOS Screen Capture
@available(iOS 13.0, *)
func makeSecure(window: UIWindow) {
DispatchQueue.main.async {
print("make window secure")
let field = UITextField()
field.isSecureTextEntry = true
window.addSubview(field)
window.layer.superlayer?.addSublayer(field.layer)
field.layer.sublayers?.last?.addSublayer(window.layer)