YMWindowUtils.h 437 B

123456789101112131415161718192021
  1. //
  2. // YMWindowUtils.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/4.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface YMWindowUtils : NSObject
  12. + (nullable UIWindowScene*)activeScene NS_AVAILABLE_IOS(13.0);
  13. + (nullable UIWindowScene*)activeWindowScene NS_AVAILABLE_IOS(13.0);
  14. + (nullable UIWindow*)keyWindow;
  15. @end
  16. NS_ASSUME_NONNULL_END