Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
1234567891011121314151617181920import SwiftUI
extension View { func settingsSearchAlias(_ action: String) -> some View { modifier(SettingsSearchAliasModifier(action: action)) }}
private struct SettingsSearchAliasModifier: ViewModifier { let action: String @Environment(\.settingsSearchControl) private var control
func body(content: Content) -> some View { content.preference( key: SettingsSearchTargetsKey.self, value: control.map { [SettingsSearchTarget(control: $0, scrollID: $0.id + "." + action, isPrimary: false)] } ?? []) }}