Flight-School / AnyCodable

Type-erased wrappers for Encodable, Decodable, and Codable values
https://flight.school/books/codable
MIT License
1.28k stars 132 forks source link

Adding missing string interpolation handling for AnyCodable #73

Closed drekka closed 1 year ago

drekka commented 1 year ago

This adds ExpressibleByStringInterpolation to AnyCodable so that this will work:

let value = 1234
let result: AnyCodable = "abcd \(value)"

Without it the second line will not compile.