-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Users screen with more samples #54
Conversation
0d068f8
to
b109b4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one question which I would like to know. Other we're good here
NetworkingSampleApp/NetworkingSampleApp/Scenes/Users/UsersViewModel.swift
Show resolved
Hide resolved
import Networking | ||
|
||
@MainActor | ||
final class UsersViewModel: ObservableObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matejmolnar @cejanen Why do we sometimes use a service as well in the VMs and sometimes we don't?
Eg. the upload also has a UploadService
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually for samples we don't. For samples we try to keep code as simple as possible just to showcase the library usage. Because upload service logic is shared in multiple VMs it made sense to extract it own service class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I am still not entirely sure why is the UploadAPIManager implementation so different and more complex than the DownloadAPIManager 🤔 but that's a topic for another debate 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can suggest simplification for sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matejmolnar I think that was my first comment and conclusion on the Upload PR as well, that it could have been almost 1:1 with the download manager.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to unify upload/download let's do it in separate PR
import Networking | ||
|
||
@MainActor | ||
final class UsersViewModel: ObservableObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can suggest simplification for sure!
NetworkingSampleApp/NetworkingSampleApp/Scenes/Users/UsersViewModel.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me
8c0ac75
to
b7565d2
Compare
This pull request is aiming to solve issue #39
Changes
SampleUserRouter
.responseDecoder
due to thedateDecodingStrategy
.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-12-11.at.14.53.07.mp4