Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Support resizable app windows on macOS

Ouverte
#1,202 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
65/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
swift
Domaine
desktop

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
Swift
Étoiles
2.5k
Forks
84
Merge moyen
3 h 22 min
PR mergées (30 j)
78

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de OpenSwiftUIProject/OpenSwiftUI

Toutes les issues de OpenSwiftUIProject/OpenSwiftUI

Issues similaires

Plus d'issues Swift

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.