Skip to content

Commit

Permalink
Merge branch 'develop' into smart-pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Mar 10, 2023
2 parents d44acbe + 04a610b commit a52b7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion PocketKit/Sources/Sync/Source.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public protocol Source {
}

public extension Source {

func refreshSaves() {
self.refreshSaves(completion: nil)
}
Expand Down
3 changes: 2 additions & 1 deletion PocketKit/Sources/Textile/Views/Tags/AddTagsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ public struct AddTagsView<ViewModel>: View where ViewModel: AddTagsViewModel {
InputTagsView(viewModel: viewModel, geometry: geometry)
OtherTagsView(viewModel: viewModel)
Spacer()
TextField(viewModel.placeholderText, text: $viewModel.newTagInput)
TextField(viewModel.placeholderText, text: Binding(get: { viewModel.newTagInput }, set: { string in viewModel.newTagInput = string.lowercased() }))
.limitText($viewModel.newTagInput, to: 25)
.textFieldStyle(.roundedBorder)
.autocapitalization(.none)
.padding(10)
.onSubmit {
guard viewModel.addTag(with: viewModel.newTagInput) else { return }
Expand Down

0 comments on commit a52b7b7

Please sign in to comment.