We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently, if we generate Swift file from the Music app (com.apple.Music), MusicTrack have a releaseDate property with Date type:
com.apple.Music
MusicTrack
releaseDate
Date
// MARK: MusicTrack @objc public protocol MusicTrack: MusicItem { /* (snip) */ @objc optional var releaseDate: Date { get } // the release date of this track
but, If try to get releaseDate property when Music app doesn't have current track (e.g. after re-opened), it will crash instead of returns nil:
but, If I change property type to Date? or NSDate manually, crash never occured (property returns nil).
Date?
NSDate
maybe It is Apple-side issue (I'm not sure), but we might be want to include workaround for this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
currently, if we generate Swift file from the Music app (
com.apple.Music
),MusicTrack
have areleaseDate
property withDate
type:but, If try to get
releaseDate
property when Music app doesn't have current track (e.g. after re-opened), it will crash instead of returns nil:but, If I change property type to
Date?
orNSDate
manually, crash never occured (property returns nil).maybe It is Apple-side issue (I'm not sure), but we might be want to include workaround for this.
Environment
The text was updated successfully, but these errors were encountered: