Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Browserino/Extensions/View+ScrollEdgeDisabled.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ extension View {
@ViewBuilder
func scrollEdgeEffectDisabledCompat() -> some View {
if #available(macOS 26.0, *) {
self
.scrollEdgeEffectStyle(.soft, for: .all)
.scrollEdgeEffectDisabled(true, for: .all)
self.scrollEdgeEffectStyle(.soft, for: .all)
} else {
self
}
Expand Down
11 changes: 8 additions & 3 deletions Browserino/Views/Preferences/RulesTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ struct RuleItem: View {

struct RulesTab: View {
@AppStorage("rules") private var rules: [Rule] = []


private func move(from source: IndexSet, to destination: Int) {
rules.move(fromOffsets: source, toOffset: destination)
}

var body: some View {
VStack (alignment: .leading) {
List {
Expand All @@ -97,9 +101,10 @@ struct RulesTab: View {
rule: rule
)
}
.onMove(perform: move)
}
Text("Type regex and choose app in which links will be opened without prompt")

Text("Drag and drop to reorder. Type regex and choose app in which links will be opened without prompt. The first matching rule wins.")
.font(.subheadline)
.foregroundStyle(.primary.opacity(0.5))
.frame(maxWidth: .infinity)
Expand Down