This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// This code is designed to be copied and pasted into a Swift Playground. | |
| /// It will work in Xcode (macOS only) or Swift Playgrounds (on iPad or macOS). | |
| import SwiftUI | |
| import PlaygroundSupport | |
| struct SegmentedProgressView: View { | |
| var value: Int | |
| var maximum: Int = 7 | |
| var height: CGFloat = 10 | |
| var spacing: CGFloat = 2 |