sindresorhus / Defaults

💾 Swifty and modern UserDefaults
https://swiftpackageindex.com/sindresorhus/Defaults/documentation/defaults
MIT License
1.93k stars 115 forks source link

Support tuples #130

Open sindresorhus opened 1 year ago

sindresorhus commented 1 year ago

It would be useful to be able to store a tuple with element of any of the supported types. The tuples would simply be stored as array, so we could just reuse the array bridge.

This will not be possible until Swift has variadic generics and we can conform tuples to protocols.