1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30
yattee/Extensions/UIViewController+HideHomeIndicator.swift

16 lines
454 B
Swift
Raw Permalink Normal View History

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