Skip to content

Commit 5dc3b01

Browse files
committed
Added comment
1 parent 6e09bbd commit 5dc3b01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ExampleMVVM/Presentation/MoviesScene/MoviesList/ViewModel/MoviesListViewModel.swift

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import Foundation
99

1010
struct MoviesListViewModelClosures {
11+
// Note: if you would need to edit movie inside Details screen and update this screen with updated movie then you would just need this closure (commented):
12+
// showMovieDetails: (Movie, @escaping (_ updated: Movie) -> Void) -> Void
1113
let showMovieDetails: (Movie) -> Void
1214
let showMovieQueriesSuggestions: (@escaping (_ didSelect: MovieQuery) -> Void) -> Void
1315
let closeMovieQueriesSuggestions: () -> Void

0 commit comments

Comments
 (0)