Skip to content

Commit

Permalink
UI_USER_INTERFACE_IDIOM() was deprecated in iOS 14 (#6576)
Browse files Browse the repository at this point in the history
  • Loading branch information
daisuke-t-jp authored Oct 6, 2020
1 parent f8a8c42 commit 38f9f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Crashlytics/Shared/FIRCLSFABHost.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ NSOperatingSystemVersion FIRCLSHostGetOSVersion(void) {
#elif TARGET_OS_TV
model = @"tvOS Simulator";
#elif TARGET_OS_IPHONE
switch (UI_USER_INTERFACE_IDIOM()) {
switch ([[UIDevice currentDevice] userInterfaceIdiom]) {
case UIUserInterfaceIdiomPhone:
model = @"iOS Simulator (iPhone)";
break;
Expand Down

0 comments on commit 38f9f78

Please sign in to comment.