Support resizable app windows on macOS
维护者通常 1 天内回复
评估
调研方向
Read the root scene content setup and the WindowGroup sizing path to locate the fixed 500x300 frame and how initial content size is chosen. Remove the fixed sizing and apply the requested minimum-size behavior with a default initial content size when the scene has none. Done when the window opens at a default size, can grow, and cannot shrink below its content's minimum size.
由索引模型根据 Issue 内容生成。
描述
Summary
On macOS, the window that an OpenSwiftUI App creates has a fixed size of 500x300. The root scene content is wrapped in a fixed frame(width:height:), so the hosting view reports equal minimum and maximum sizes, and the window cannot be resized.
Scope
- Remove the fixed frame from the root scene content.
- Use the
WindowGroupdefault resizability: the content sets the window's minimum size, and the maximum size is unbounded (NSHostingSizingOptions.minSize). - Give the window a default initial content size when the scene does not set one.
Acceptance criteria
- The app window opens at the default size and can be resized larger.
- The window cannot be resized smaller than the minimum size of its content.
- 主要语言
- Swift
- 星标
- 2.5k
- 派生
- 84
- 平均合并
- 3 小时 14 分钟
- 30 天内合并 PR
- 84
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenSwiftUIProject/OpenSwiftUI 的其他 Issue
-
area: tooling type: build
难度 4/5 3-5 天 新手友好度 35/100
OpenSwiftUIProject/OpenSwiftUI#1228 ·
维护者通常 1 天内回复
-
Implement Picker未关闭area: data-flow area: view type: feature
难度 4/5 3-5 天 新手友好度 30/100
OpenSwiftUIProject/OpenSwiftUI#1225 ·
维护者通常 1 天内回复
-
area: graphics area: rendering type: feature
难度 5/5 一周以上 新手友好度 18/100
OpenSwiftUIProject/OpenSwiftUI#1223 · 3 个 reaction ·
维护者通常 1 天内回复
-
area: graphics area: rendering type: feature
难度 4/5 3-5 天 新手友好度 30/100
OpenSwiftUIProject/OpenSwiftUI#1222 ·
维护者通常 1 天内回复
-
area: rendering type: feature
难度 5/5 一周以上 新手友好度 35/100
OpenSwiftUIProject/OpenSwiftUI#1214 · 1 个 reaction ·
维护者通常 1 天内回复
查看 OpenSwiftUIProject/OpenSwiftUI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
manaflow-ai/cmux#25687 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
kennss/SiliconScope#87 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
mozilla-mobile/firefox-ios#36314 ·
维护者通常 1 天内回复
-
documentation ready
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 76/100
sarensw/MacPacker#378 · 1 条评论 ·
维护者通常 1 天内回复