Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add Gauge support

Aperta
#1,022 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
swift
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: rendering area: view type: feature

Summary

Add public Gauge support for displaying a value within a bounded range.

Scope

  • Add the public Gauge API 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

Lingua principale
Swift
Stelle
2.5k
Fork
84
Merge medio
2h 10m
PR unite (30g)
62

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenSwiftUIProject/OpenSwiftUI

Tutte le issue di OpenSwiftUIProject/OpenSwiftUI

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.