Created
June 15, 2019 13:45
-
-
Save klaas/cbf5507c7655d6105b3cf9688659469a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public extension MPMediaItem { | |
var isLocal: Bool { | |
return value(forProperty: "isLocal") as! Bool | |
} | |
var isTemporaryCloudDownload: Bool { | |
return value(forProperty: "isTemporaryCloudDownload") as! Bool | |
} | |
var isPendingSync: Bool { | |
return value(forProperty: "isPendingSync") as! Bool | |
} | |
var isStoreRedownloadable: Bool { | |
return value(forProperty: "isStoreRedownloadable") as! Bool | |
} | |
var storeItemAdamID: Any? { | |
return value(forProperty: "isTemporaryCloudDownload") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment