Skip to content

Commit

Permalink
Disable scrolling fixes on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
liang2kl committed May 13, 2021
1 parent 97d9039 commit daab7a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Source/Hollow/View/Hierarchy/Account/SettingsSubViews.swift
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ struct OtherSettingsView: View {

}

#if !targetEnvironment(macCatalyst)
Section(footer: Text("SETTINGSVIEW_OTHER_EXP_FIX_SCROLL_FOOTER").padding(.horizontal)) {
HStack {
Text("SETTINGSVIEW_OTHER_EXP_FIX_SCROLL_LABEL")
Expand All @@ -531,6 +532,7 @@ struct OtherSettingsView: View {
}

}
#endif

}
.defaultListStyle()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ struct HollowDetailView: View {
LazyVStack(spacing: 0) {
content
}
.padding([.horizontal, .bottom], UIDevice.isMac ? ViewConstants.macAdditionalPadding : 0)
.padding(.top, UIDevice.isMac ? 10 : 0)
.edgesIgnoringSafeArea(.bottom)

.onChange(of: store.replyToIndex) { index in
withAnimation(scrollAnimation) {
proxy.scrollTo(index, anchor: scrollToAnchor)
Expand Down Expand Up @@ -144,9 +148,6 @@ struct HollowDetailView: View {

}

.padding([.horizontal, .bottom], UIDevice.isMac ? ViewConstants.macAdditionalPadding : 0)
.padding(.top, UIDevice.isMac ? 10 : 0)
.edgesIgnoringSafeArea(.bottom)
.disabled(store.noSuchPost)

.background(Color.hollowCardBackground.ignoresSafeArea())
Expand Down

0 comments on commit daab7a1

Please sign in to comment.