theMomax
(Max Obermeier)
December 6, 2023, 10:14pm
1
We are working on adding new capabilities to Foundation's FormatStyle implementations, adding new configuration options and making them more suitable for use in user interfaces. We'd like to get your feedback on the proposals below. Thanks!
apple:main ← theMomax:maxobermeier/additional-configuration-properties-for-formatstyle-implementations-proposal
opened 06:35PM - 06 Dec 23 UTC
Foundation defines the `FormatStyle` protocol making it easy to format all kinds… of data. However, many of the implementations Foundation provides could offer more customization and do even more to provide access to the configuration after the `FormatStyle` instance has been created. This is critical where the definition of the format and the actual formatting are done in different places or even by different parties.
[Read the full proposal here...](https://github.com/themomax/swift-foundation/blob/maxobermeier/additional-configuration-properties-for-formatstyle-implementations-proposal/Proposals/NNNN-additional-configuration-properties-for-formatstyle-implementations.md)
Implementation: #338
apple:main ← theMomax:maxobermeier/discrete-format-style-proposal
opened 06:57PM - 06 Dec 23 UTC
Foundation defines the `FormatStyle` protocol making it easy to format all kinds… of data. While its API works great for defining a format and formatting static values, re-formatting every time a continuous dynamic input value changes is unnecessary and computationally expensive. Format styles need a mechanism to provide information for what inputs it is actually necessary to update the output.
[Read the full proposal here...](https://github.com/themomax/swift-foundation/blob/maxobermeier/discrete-format-style-proposal/Proposals/NNNN-discrete-format-style.md)
Implementation: themomax/swift-foundation#2
10 Likes