Repository navigation
API cleanup
Breaking changes:
- The running-system details are static, since they describe the device the code runs on, not a looked-up
Device:Device.operatingSystemName,operatingSystemVersion,operatingSystemVersionString,physicalMemory,processorCount,systemUptimeand thevolume…Capacityproperties. ReplaceDevice.current.physicalMemorywithDevice.physicalMemory. Mac.find(model:)is no longer public. UseDevice(modelIdentifier:).mac.Mac.modelsis renamedMac.modelIdentifiers, matchingDevice.modelIdentifier.
Fixes:
Device.macreturnsnilfor a device that isn't a Mac without decoding the Mac data.- A Mac kind newer than
Mac.Kinddecodes as.unknowninstead of leavingMac.allempty.