From ef168b5b3f5ba1d61198ba3df647b296328e8cd7 Mon Sep 17 00:00:00 2001 From: Reed Es Date: Mon, 28 Feb 2022 16:07:50 -0700 Subject: [PATCH] fixed code example for sort --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index af7608b..2329382 100644 --- a/README.md +++ b/README.md @@ -136,11 +136,11 @@ private typealias Sort = TablerSort @ViewBuilder private func header(_ ctx: Binding) -> some View { - Sort.title("ID", ctx, \.id) + Sort.columnTitle("ID", ctx, \.id) .onTapGesture { tablerSort(ctx, &fruits, \.id) { $0.id < $1.id } } - Sort.title("Name", ctx, \.name) + Sort.columnTitle("Name", ctx, \.name) .onTapGesture { tablerSort(ctx, &fruits, \.name) { $0.name < $1.name } } - Sort.title("Weight", ctx, \.weight) + Sort.columnTitle("Weight", ctx, \.weight) .onTapGesture { tablerSort(ctx, &fruits, \.weight) { $0.weight < $1.weight } } Text("Color") }