We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e2fd5 commit 8355851Copy full SHA for 8355851
Sources/GravatarUI/SwiftUI/ProfileEditor/QuickEditor.swift
@@ -226,9 +226,16 @@ struct QuickEditor<ImageEditor: ImageEditorView>: View {
226
}
227
228
229
+ var shouldHideProfileCardHeader: Bool {
230
+ let screenHeight = UIScreen.main.bounds.height
231
+ let iPhoneSE3rdGenScreenHeight: CGFloat = 667
232
+
233
+ return (vertcalSizeClass == .compact || screenHeight <= iPhoneSE3rdGenScreenHeight) && model.isKeyboardPresented
234
+ }
235
236
@ViewBuilder
237
func profileCardHeaderView() -> some View {
- if !(vertcalSizeClass == .compact && model.isKeyboardPresented) {
238
+ if !shouldHideProfileCardHeader {
239
EmailText(email: model.email)
240
.accumulateIntrinsicHeight()
241
profileView()
0 commit comments