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

Implement LinearGradient

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

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

@Kyle-Ye đang làm issue này rồi.

Từ ngày 9/8/2026.

  • #850 của @Dark-Existed — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area: graphics contrib: help wanted priority: p1 type: feature

Description

LinearGradient is a fundamental gradient type in SwiftUI that creates a gradient between colors along a linear axis. This is currently missing from OpenSwiftUI.

API Reference

SwiftUI's LinearGradient: https://developer.apple.com/documentation/swiftui/lineargradient

Expected API

struct LinearGradient: ShapeStyle, View {
    init(gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint)
    init(colors: [Color], startPoint: UnitPoint, endPoint: UnitPoint)
    init(stops: [Gradient.Stop], startPoint: UnitPoint, endPoint: UnitPoint)
}

Use Case

Required for the AnimatedColorTimelineView example and many other gradient-based UI designs.

References

  • Example usage commented out in: Example/SharedExample/Animation/Timeline/AnimatedColorTimelineView.swift

Priority

Medium - Common UI element for creating gradient backgrounds and fills

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.