SwiftUI View Modifiers and if #available

When applied to a SwiftUI View, a ViewModifier produces a different version of the original value. In this post, Adam Overholtzer provides an extension on the View type, combining view modifiers with platform availability checks to conditionally apply the modifier.