Hide home indicator

This commit is contained in:
Arkadiusz Fal
2022-06-22 00:18:16 +02:00
parent 270113e3e3
commit 776e491b58
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!)
}
}