Case Study: Sharing Swift Domain Logic Between iOS and Android with FoodshareCore

Please don’t do this. DateFormatters are expensive to create, so if you’re worried about thread safety it’s better to just wrap the static instance in a lock. Repeated formatter creation is an easy way to get frame drops.

2 Likes