Implement LinearGradient
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- Swift
- 星标
- 2.5k
- 派生
- 84
- 平均合并
- 2 小时 8 分钟
- 30 天内合并 PR
- 62
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenSwiftUIProject/OpenSwiftUI 的其他 Issue
-
macOS button text differs from SwiftUI in interaction snapshots可能已有人在做 @Kyle-Ye 今天认领。 未关闭area: rendering area: text impact: visual-diff platform: macOS type: bug
难度 2/5 1-3 小时 新手友好度 74/100
OpenSwiftUIProject/OpenSwiftUI#1140 ·
维护者通常 1 天内回复
-
Add Accessibility support可能已有人在做 @Kyle-Ye 于 15 天前认领。 未关闭area: accessibility area: hosting-bridge type: feature
OpenSwiftUIProject/OpenSwiftUI#1112 · 已指派 1 人 ·
维护者通常 1 天内回复
-
area: rendering area: view type: feature
难度 4/5 3-5 天 新手友好度 42/100
OpenSwiftUIProject/OpenSwiftUI#1022 ·
维护者通常 1 天内回复
-
area: animation area: rendering contrib: help wanted impact: visual-diff type: bug
难度 4/5 3-5 天 新手友好度 48/100
OpenSwiftUIProject/OpenSwiftUI#984 ·
维护者通常 1 天内回复
-
Add List support未关闭area: layout area: rendering area: view type: feature
难度 5/5 一周以上 新手友好度 28/100
OpenSwiftUIProject/OpenSwiftUI#919 ·
维护者通常 1 天内回复
查看 OpenSwiftUIProject/OpenSwiftUI 的全部 Issue
相似的 Issue
-
install.ps1: Windows PowerShell 5.1 aborts after a successful cosign verification (NativeCommandError on 'Verified OK')可能已有人在做 @sly321-pixel 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
OneBusAway/onebusaway-ios#1518 ·
维护者通常 2 天内回复
-
area: agents
难度 2/5 1-3 小时 新手友好度 72/100
manaflow-ai/cmux#19972 · 1 条评论 ·
维护者通常 1 天内回复
-
VerificationCodeInputField: iPad Return key clears/hides OTP fields可能已有人在做 @amansingh1207 今天认领。 未关闭needs attention
难度 2/5 1-3 小时 新手友好度 82/100
firebase/FirebaseUI-iOS#1407 ·
维护者通常 5 天内回复
-
component: swift renderer P2 type: bug
难度 2/5 1-3 小时 新手友好度 83/100
a2ui-project/a2ui#3146 ·
维护者通常 2 天内回复