Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add Gauge support

Đang mở
#1,022 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
swift
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Swift
Star
2.5k
Fork
84
Merge trung bình
2 giờ 8 phút
Pull request đã merge (30 ngày)
62

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenSwiftUIProject/OpenSwiftUI

Tất cả issue của OpenSwiftUIProject/OpenSwiftUI

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.