Posts

Post not yet marked as solved
0 Replies
159 Views
In Xcode 12.4, the following line of code produces a [String], but in Xcode 12.5 it produces a [String?]: let foo = "foo" let bar = "bar" let empty = "" let items = [foo, bar, empty].compactMap { $0.isEmpty ? nil : $0 } Both 12.4 and 12.5 are using SWIFT_VERSION = 5.0;. Is this expected?
Posted
by afms-je.
Last updated
.