Add Gauge support
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 42/100
Rechercherichtung
Use the linked Apple Gauge docs as the API contract. Find how similar value-in-range views (for example ProgressView) and style protocols are implemented in this repo, then add public Gauge, GaugeStyle, .gaugeStyle(_:), labels, and range-preserving updates. Done when Gauge(value:in🏷️) compiles and renders on supported hosts, styles change presentation only, and examples plus focused tests cover simple and fully labeled gauges.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Add public Gauge support for displaying a value within a bounded range.
Scope
- Add the public
GaugeAPI and its common value-in-range initializers. - Support labels for the gauge, current value, minimum value, maximum value, and marked values where applicable.
- Integrate
GaugeStyle, style configuration,.gaugeStyle(_:), and baseline platform-appropriate presentations. - Normalize and update gauge values while preserving the supplied range and label content.
- Add examples and focused coverage for simple and fully labeled gauges.
Acceptance criteria
- A basic
Gauge(value:in:label:)compiles and renders on supported hosts. - Current, minimum, and maximum value labels are available to gauge styles.
- Applying a supported gauge style changes the presentation without changing the underlying value semantics.
- Updating the value or range updates the rendered gauge while preserving view identity.
API reference
- Vorherrschende Sprache
- Swift
- Sterne
- 2.5k
- Forks
- 84
- Ø Merge
- 2 Std. 10 Min.
- Gemergte PRs (30 T.)
- 62
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus OpenSwiftUIProject/OpenSwiftUI
-
Add Accessibility supportEvtl. vergeben @Kyle-Ye hat das vor 18 Tagen übernommen. Offenarea: accessibility area: hosting-bridge type: feature
OpenSwiftUIProject/OpenSwiftUI#1112 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: animation area: rendering contrib: help wanted impact: visual-diff type: bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
OpenSwiftUIProject/OpenSwiftUI#984 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add List supportOffenarea: layout area: rendering area: view type: feature
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 28/100
OpenSwiftUIProject/OpenSwiftUI#919 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add ScrollView supportOffenarea: layout area: rendering area: view type: feature
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
OpenSwiftUIProject/OpenSwiftUI#918 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: compatibility area: view type: feature
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
OpenSwiftUIProject/OpenSwiftUI#917 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in OpenSwiftUIProject/OpenSwiftUI
Ähnliche Issues
-
swift.md: `Date(myString, strategy: .iso8601)` example omits `try` — the initializer is throwingOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
-
bug core p3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
RunanywhereAI/runanywhere-sdks#1083 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
nightscout/nightguard#368 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
johnno1962/InjectionNext#175 · 2 Kommentare ·