Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Support resizable app windows on macOS

Abierto
#1,202 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
swift
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Swift
Estrellas
2.5k
Forks
84
Merge medio
3 h 22 min
PR fusionados (30 d)
78

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenSwiftUIProject/OpenSwiftUI

Todos los issues de OpenSwiftUIProject/OpenSwiftUI

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.