kkebo / DevToys.swiftpm

DevToys for iPad (WIP)
MIT License
37 stars 5 forks source link

Once I click on any item in the sidebar, the sidebar doesn't close after that #24

Closed kkebo closed 2 years ago

kkebo commented 2 years ago

When the horizontal size class is .compact, clicking a tool from the sidebar closes the sidebar the first time, but leaves it open the second and subsequent times. That could be a SwiftUI issue.

https://user-images.githubusercontent.com/601636/167292949-69d897ef-5c4f-4444-b3b2-ed21ac35781a.MOV

iPad Pro 12.9" 5th generation with Magic Keyboard (iPadOS 15.5 DB 4)

kkebo commented 2 years ago

It seems that other apps built with SwiftUI (e.g. Apple Developer, Translate, Airport, and Interact) also have the same issue. On the other hand, Files, Notes, and Photos don't have the issue. Those apps look built with UIKit.

kkebo commented 2 years ago

This behavior turns out to be normal for SwiftUI, so I close this issue.