Reading time: 1 min

This recipe shows how to handle conversions between UIKit UIFont and SwiftUI Font, as there are more than a few instances where using both is necessary. This mainly comes into play when you import UIViews into SwiftUI via UIViewRepresentable.

Continue Reading...

Reading time: 1 min

This quick recipe show how to list and display all the fonts that are available by default in your iOS/MacOS app.

Continue Reading...

Reading time: 1 min

This recipe shows how to render justified text in SwiftUI.

Continue Reading...

Reading time: 2 min

This quick tip shows how to speed up your SwiftUI development by simply breaking the code of your Views into smaller chunks. This results in:

  • Faster Source Editor operation, i.e syntax highlighting and error/warnings checks will come in faster.
  • Faster preview build and refresh time.
  • Faster build time of SwiftUI code, both for clean and incremental builds.

Continue Reading...

Reading time: 4 min

This recipe shows how to zoom an image in SwiftUI using the pinch/magnify gesture. The image is zoomed in or out at the midpoint between the fingers, supports dragging and double tap to zoom in or reset.

Continue Reading...