mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Force soft top scroll edge effect for banner and video info views
iOS 27 changes the default scroll edge effect style to hard, which draws a sharp cutoff line over the channel banner and video info gradient extending under the toolbar.
This commit is contained in:
@@ -368,6 +368,7 @@ struct ChannelView: View {
|
||||
}
|
||||
.background(viewBackgroundColor)
|
||||
.ignoresSafeArea(edges: .top)
|
||||
.softTopScrollEdgeEffect()
|
||||
#if os(macOS)
|
||||
.overlay(alignment: .top) {
|
||||
legacyToolbarScrim
|
||||
@@ -533,6 +534,7 @@ struct ChannelView: View {
|
||||
}
|
||||
.background(viewBackgroundColor)
|
||||
.ignoresSafeArea(edges: .top)
|
||||
.softTopScrollEdgeEffect()
|
||||
#if os(macOS)
|
||||
.overlay(alignment: .top) {
|
||||
legacyToolbarScrim
|
||||
|
||||
@@ -545,6 +545,7 @@ struct VideoInfoView: View {
|
||||
#if !os(tvOS)
|
||||
.scrollDismissesKeyboard(.interactively)
|
||||
#endif
|
||||
.softTopScrollEdgeEffect()
|
||||
.modifier(VideoInfoScrollOffsetModifier(scrollOffset: $scrollOffset))
|
||||
|
||||
#if os(macOS)
|
||||
|
||||
Reference in New Issue
Block a user