CFDictionary get Value for Key in Swift3
问题 I've a problem with accessing a specific (or any) key in a CFDictionary. Honestly I don't really get the way you need to do this in Swift and I think it's overly complicated... My Code: if let session = DASessionCreate(kCFAllocatorDefault) { let mountedVolumes = FileManager.default.mountedVolumeURLs(includingResourceValuesForKeys: [], options: [])! for volume in mountedVolumes { if let disk = DADiskCreateFromVolumePath(kCFAllocatorDefault, session, volume as CFURL) { let diskinfo =