Skip to content

Commit f3af7a1

Browse files
committed
Replace deprecated constant
1 parent b50179d commit f3af7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/DeviceIdentificator/DeviceModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
public indirect enum DeviceModel: Equatable, CaseIterable, CustomStringConvertible {
77
public static let current: DeviceModel = {
88
#if os(macOS)
9-
let service = IOServiceGetMatchingService(kIOMasterPortDefault,
9+
let service = IOServiceGetMatchingService(kIOMainPortDefault,
1010
IOServiceMatching("IOPlatformExpertDevice"))
1111
var modelIdentifier: String?
1212
if let modelData = IORegistryEntryCreateCFProperty(service, "model" as CFString, kCFAllocatorDefault, 0).takeRetainedValue() as? Data {

0 commit comments

Comments
 (0)