🆕 My new app is now out – meet Trevor, the salary-tracking pig 🐷!

He's cute as a button, loves to track your salary, taking naps, living on your home screen, and dressing up.

Get Trevor on your iPhone and iPad for free: https://apps.apple.com/us/app/salarypig/id6475237479

‎SalaryPig

‎Meet Trevor, the salary-tracking piggybank. Just tell him your salary and he'll show a counter of how much you've earned each day.  He's cute as a button and loves to take naps when you're not working (it's hard keeping track of salaries all day). Ever been sitting in a boring meeting at work, wis…

App Store
@shaundon Congrats! Love the super clean and clear UI 🚀

@shaundon Congrats, It’s a neat idea!

One quick suggestion: I’d recommend using the monospacedDigits() modifier on the earnings ticker to prevent the digits from wobbling as it changes. One caveat is that your font needs to be a system font or support the tnum (tabular numerals) feature.

https://developer.apple.com/documentation/swiftui/view/monospaceddigit%28%29

monospacedDigit() | Apple Developer Documentation

Modifies the fonts of all child views to use fixed-width digits, if possible, while leaving other characters proportionally spaced.

Apple Developer Documentation
@landonepps oh i wasn’t aware of this modifier but that sounds perfect, i was aware of the wobbling but wasn’t sure how to handle it. Thanks!
@shaundon Yeah... honestly SwiftUI needs much better discoverability for features. It exists in UIKit too, which is how I knew to search for it. But I'd be surprised if this even showed up in a WWDC video. Afaik it's really only used for timers/tickers. https://developer.apple.com/documentation/uikit/uifont/1619022-monospaceddigitsystemfont
monospacedDigitSystemFont(ofSize:weight:) | Apple Developer Documentation

Returns the standard system font with all digits of consistent width.

Apple Developer Documentation
@shaundon Oh, it's also used to line up digits vertically like in a table. I believe that's where the name tabular numerals comes from.

@landonepps just tried this and it fixes the problem perfectly, it looks miles better now. Thanks again!

I agree on the discoverability too, there are so many modifiers that it'd be impossible to know about. It kind of reminds me of CSS where unless you know a particular property exists, you're unlikely to find it organically. I've no idea how they might fix that though

@shaundon Glad I could help! And congrats again on the launch. It's so fun to see your salary count up as the day goes on.
@landonepps Yeah I've found myself opening the app and watching it count up any time I'm stuck in a dull meeting at work 🙈