Wouter01 / SwiftUI-WindowManagement

MIT License
33 stars 3 forks source link

Window not being destroyed #2

Open longseespace opened 6 months ago

longseespace commented 6 months ago

It seems that this causes abandoned memory.

For some reason, when using .register(), closing the window would not destroy it.

https://github.com/Wouter01/SwiftUI-WindowManagement/blob/adbebf5d7df325f3d7bf07dc832e5e162a9003f5/Example/WindowManagementProject/WindowManagementProjectApp.swift#L32

Wouter01 commented 5 months ago

Sorry for the late reply. You're right that this is causing memory issues. However, I'm personally not using the library anymore, and I don't think it's safe enough for production apps. I will archive this repo