Blog about journey to become Apple platforms developer. You can find here my notes about interesting problems which I hit during my learning. I hope that it will be helpful for someone who is solving the same issues. New posts are published rarely. I write about something, only when I couldn't find anything already published online.
When working on watchOS app I wanted to display text as big as possible for given frame. Additionally, I wanted to achieve this on every Apple Watch screen size without hardcoding any values. Doing this for one `Text` view is a little strange but simple in SwiftUI. However "syncing" the same *dynamic* font size across multiple text views and preserving layout was an interesting challange.
I’m working on an app, which displays a stopwatch on one of the views. To display stopwatch in a consistent way, values of minutes, seconds and milliseconds need proper amount of leading zeros. For example, values like `1 minute, 2 seconds, 3 milliseconds` should be displayed as `"01:02.003"`. There are two common ways of formatting numbers in Swift. However, one of them lead me to unexpected memory leak in my app.