Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support resizable app windows on macOS

Aperta
#1,202 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: app-scene area: hosting-bridge platform: macOS type: bug type: feature

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 WindowGroup default 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.
Lingua principale
Swift
Stelle
2.5k
Fork
84
Merge medio
3h 22m
PR unite (30g)
78

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenSwiftUIProject/OpenSwiftUI

Tutte le issue di OpenSwiftUIProject/OpenSwiftUI

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.