Hide home indicator

This commit is contained in:
Arkadiusz Fal
2022-06-22 00:18:16 +02:00
parent 13208a4444
commit c0f395b2df
6 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
extension NSObject {
class func swizzle(origSelector: Selector, withSelector: Selector, forClass: AnyClass) {
let originalMethod = class_getInstanceMethod(forClass, origSelector)
let swizzledMethod = class_getInstanceMethod(forClass, withSelector)
method_exchangeImplementations(originalMethod!, swizzledMethod!)
}
}