mirror of
https://github.com/yattee/yattee.git
synced 2025-10-12 18:38:16 +00:00
Hide home indicator
This commit is contained in:
7
Extensions/NSObject+Swizzle.swift
Normal file
7
Extensions/NSObject+Swizzle.swift
Normal 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!)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user