Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Rename Add Bookmark ViewModel's action method
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviocc committed Jan 2, 2021
1 parent b5b4dab commit c8efe7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Pinboarding/Views/Add Bookmark/AddBookmarkView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct AddBookmarkView: View {
Spacer()

Button("Add") {
viewModel.save()
viewModel.addBookmark()
}
.disabled(!viewModel.isValid)
.padding()
Expand Down
2 changes: 1 addition & 1 deletion Pinboarding/Views/Add Bookmark/AddBookmarkViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final class AddBookmarkViewModel: ObservableObject {

// MARK: - Public

func save() {
func addBookmark() {
guard
let url = URL(string: urlString)
else {
Expand Down

0 comments on commit c8efe7d

Please sign in to comment.