Skip to content

Commit

Permalink
Merge pull request #6 from 374139544/main
Browse files Browse the repository at this point in the history
删除iOS15的api,防止低版本的xcode无法打包
  • Loading branch information
lixm1988 authored Jun 16, 2022
2 parents 32aacec + fd362cc commit 5428920
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Classes/Categories/UIWindow+AgoraChatCallKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ + (UIWindow *)agoraChatCallKit_keyWindow
{
if (@available(iOS 13.0, *)) {
for (UIWindowScene *scene in UIApplication.sharedApplication.connectedScenes) {
if (@available(iOS 15.0, *)) {
return scene.keyWindow;
} else {
for (UIWindow *window in scene.windows) {
if (window.isKeyWindow) {
return window;
}
for (UIWindow *window in scene.windows) {
if (window.isKeyWindow) {
return window;
}
}
}
Expand Down

0 comments on commit 5428920

Please sign in to comment.