Merge pull request #13 from kkla320/fix/#10_Angles Fix/#10 angles
Merge pull request #13 from kkla320/fix/#10_Angles
Fix/#10 angles
GaugeProgressViewStyle adds the Apple Watch gauge view to iOS.
To install GaugeProgressViewStyle, add GaugeProgressViewStyle as a dependency to your Package.swift file.
.package(url: "https://github.com/kkla320/GaugeView.git", from: "1.0.0")
Simply use the progressViewStyle method of ProgressView and pass the GaugeProgressViewStyle via one of the static members named gauge. Please have a look in the wiki for detailed documentation.
progressViewStyle
ProgressView
gauge
ProgressView(value: 0) .progressViewStyle(.gauge())
ProgressView(value: 0.5) .progressViewStyle(.gauge(thickness: 20))
ProgressView(value: 0.5) { Text("Gauge") } .progressViewStyle(.gauge())
ProgressView(value: 0.5) .progressViewStyle( .gauge { Text("12") } upperLabel: { Text("24") } )
ProgressView(value: 0.5) .progressViewStyle( .gauge { Image(systemName: "sun.max.fill") } upperLabel: { Image(systemName: "cloud.rain.fill") } )
Simply create a pull request.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
GaugeProgressViewStyle adds the Apple Watch gauge view to iOS.
Installation
To install GaugeProgressViewStyle, add GaugeProgressViewStyle as a dependency to your Package.swift file.
Usage
Simply use the
progressViewStyle
method ofProgressView
and pass the GaugeProgressViewStyle via one of the static members namedgauge
. Please have a look in the wiki for detailed documentation.Requirements
Contributing
Simply create a pull request.