Add Gauge support
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
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ả
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
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenSwiftUIProject/OpenSwiftUI
-
macOS button text differs from SwiftUI in interaction snapshotsCó thể đã có người làm @Kyle-Ye đã nhận hôm nay. Đang mởarea: rendering area: text impact: visual-diff platform: macOS type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
OpenSwiftUIProject/OpenSwiftUI#1140 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add Accessibility supportCó thể đã có người làm @Kyle-Ye đã nhận 15 ngày trước. Đang mởarea: accessibility area: hosting-bridge type: feature
OpenSwiftUIProject/OpenSwiftUI#1112 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: animation area: rendering contrib: help wanted impact: visual-diff type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
OpenSwiftUIProject/OpenSwiftUI#984 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add List supportĐang mởarea: layout area: rendering area: view type: feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
OpenSwiftUIProject/OpenSwiftUI#919 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add ScrollView supportĐang mởarea: layout area: rendering area: view type: feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
OpenSwiftUIProject/OpenSwiftUI#918 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của OpenSwiftUIProject/OpenSwiftUI
Issue tương tự
-
[开源推荐] 打拼音就出篆书的输入法,附古文字创作小工具Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
521xueweihan/HelloGitHub#3940 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Local host row takes the name of an exe.dev VM when /etc/hosts aliases that VM to a loopback addressĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
SRGSSR/pillarbox-apple#1604 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 3 ngày