File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ struct TodoListView: View {
1212 @Environment ( NavigationRouter . self) var router
1313 @Environment ( \. diContainer) var container : DIContainer
1414 @Environment ( \. colorScheme) private var colorScheme
15+ @ScaledMetric ( relativeTo: . body) private var headerHeight = 41
1516 @State private var headerOffset : CGFloat = . zero
1617 @State private var isScrollTrackingEnabled = false
1718
@@ -322,7 +323,7 @@ struct TodoListView: View {
322323 . scrollIndicators ( . never)
323324 . scrollDisabled ( !isScrollTrackingEnabled)
324325 . contentMargins ( . leading, 16 , for: . scrollContent)
325- . frame ( height: UIFont . preferredFont ( forTextStyle : . body ) . lineHeight . rounded ( . up ) + 20 )
326+ . frame ( height: headerHeight )
326327 . onAppear {
327328 headerOffset = 0
328329 isScrollTrackingEnabled = false
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ struct PushNotificationListView: View {
1313 @Environment ( \. sceneWidth) private var sceneWidth
1414 @Environment ( \. colorScheme) private var colorScheme
1515 @Environment ( \. diContainer) private var container : DIContainer
16+ @ScaledMetric ( relativeTo: . body) private var headerHeight = 41
1617 @State private var headerOffset : CGFloat = 0
1718 @State private var isScrollTrackingEnabled = false
1819
@@ -156,7 +157,7 @@ struct PushNotificationListView: View {
156157 . frame ( maxWidth: . infinity, alignment: . leading)
157158 }
158159 }
159- . frame ( height: UIFont . preferredFont ( forTextStyle : . body ) . lineHeight . rounded ( . up ) + 20 )
160+ . frame ( height: headerHeight )
160161 . onAppear {
161162 headerOffset = 0
162163 isScrollTrackingEnabled = false
You can’t perform that action at this time.
0 commit comments