I've started to learn SwiftUI. I try to update UI when orientation is changing.
I added @Environment(.horizontalSizeClass) var sizeClass
in my view, and then iphone simulator updates the UI automatically when rotated. But iPad simulator does not update the UI when rotated. Could you tell me how to update UI for iPad?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…