IGListKit/Source/Internal/IGSystemVersion.m
Scott Wolchok 035808e750 Don't call [UIDevice currentDevice] in +load
Summary: sysctl should be faster.

Reviewed By: timonus

Differential Revision: D13981833

fbshipit-source-id: ae7a67d4eb69595441a4a66e0ef0a271762f77ce
2019-02-08 14:42:56 -08:00

16 lines
345 B
Objective-C

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "IGSystemVersion.h"
bool IGSystemVersionIsIOS9OrNewer(void) {
if (@available(iOS 9.0, *)) {
return true;
} else {
return false;
}
}