SwiftUI's trim() modifier lets you draw only a portion of any shape by specifyin...
Paul Hudson @twostraws@mastodon.social
SwiftUI's trim() modifier lets you draw only a portion of any shape by specifying start and end values between 0 and 1. It's perfect for building custom progress indicators with just a few lines of code. https://www.hackingwithswift.com/quick-start/swiftui/how-to-draw-part-of-a-solid-shape-using-trim