I am trying to create a Date object from a string in UTC format. So I follow this example in this blog: https://www.robertpieta.com/local-utc-date-format-swift/
And I did
let isoDateString = "2020-05-31T04:32:27Z"
let date = ISO8601DateFormatter().date(from: isoDateString)
But when I run the code on Xcode 12, 'date' is nil. Is that something got change in Xcode 12 which made above example stop working?
Thank you.