Skip to content

1.11.0

Latest

Choose a tag to compare

@prachigauriar prachigauriar released this 04 Aug 17:31

This release adds RemoteLocalizedFormatStringPolicy for controlling whether content from a remote bundle may be used as a format string.

Since a mismatched or malicious format string can crash your app or leak memory, #remoteLocalizedString(format:bundle:_:) now always uses your local format string by default.

To opt back in for keys you’ve vetted, implement a type that conforms to RemoteLocalizedFormatStringPolicy and set it via RemoteLocalizedFormatStringPolicies.current.