Skip to content
Augmented Code

Augmented Code

Performant, sleek and elegant.

  • Home
  • Drifty Asteroid
  • Signal Path
  • Blog
  • Contact
  • About

Tag: layout

Posted on May 10, 2020August 16, 2020

Setting an equal width to text views in SwiftUI

Let's take a look on how to set an equal width to multiple views where the width equals to the widest Text() view in SwiftUI. SwiftUI does not have an easy to use view modifier for this at the moment, therefore we'll add one ourselves. Example use case is displaying two text bubbles with width …

Continue reading "Setting an equal width to text views in SwiftUI"

  • Facebook
  • Twitter
  • LinkedIn
  • Email
Blog at WordPress.com.
Cancel