field_ios

In-the-field app for Radroots on iOS
git clone https://radroots.dev/git/field_ios.git
Log | Files | Refs | README | LICENSE

TeraReadableScrollEdges.swift (382B)


      1 import SwiftUI
      2 
      3 extension View {
      4   @ViewBuilder
      5   func teraReadableScrollEdges(_ enabled: Bool) -> some View {
      6     // At accessibility sizes, the iOS 26 edge fade can obscure several lines
      7     // of otherwise visible instructions. Keep text opaque up to the bars.
      8     if #available(iOS 26.0, *) {
      9       scrollEdgeEffectHidden(enabled, for: .all)
     10     } else {
     11       self
     12     }
     13   }
     14 }