public func osVersionLessThanOrEqual(_ version: String) -> Bool {
    UIDevice.current.systemVersion.compare(version, options: .numeric) != .orderedDescending
}