yattee/Extensions/UIViewController+HideHomeIndicator.swift

14 lines
440 B
Swift
Raw Normal View History

2022-06-21 22:18:16 +00:00
import UIKit
extension UIViewController {
@objc var swizzle_prefersHomeIndicatorAutoHidden: Bool {
true
2022-06-21 22:18:16 +00:00
}
public class func swizzleHomeIndicatorProperty() {
swizzle(origSelector: #selector(getter: UIViewController.prefersHomeIndicatorAutoHidden),
withSelector: #selector(getter: UIViewController.swizzle_prefersHomeIndicatorAutoHidden),
forClass: UIViewController.self)
}
}