-
Notifications
You must be signed in to change notification settings - Fork 51
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
Feature/add controller lce states #6
Conversation
var refreshControl: UIRefreshControl? | ||
|
||
override func viewDidLoad() { |
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.
Remove empty method
import RxSwift | ||
|
||
class ArticleDetailsViewModel: BaseViewModel { | ||
var articleId = String() |
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.
Remove default initializer for this variable. We don't need to call API with empty string.
@@ -8,78 +8,60 @@ | |||
|
|||
import UIKit | |||
|
|||
class CategoryViewController: GridCollectionViewController, SortModalControllerProtocol { | |||
class CategoryViewController: GridCollectionViewController<CategoryViewModel>, SortModalControllerProtocol { | |||
var categoryId = String() |
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.
Remove default initializer for this variable. We don't need to call API with empty string.
import RxSwift | ||
|
||
class CategoryViewModel: GridCollectionViewModel { | ||
var categoryId = String() |
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.
Remove default initializer for this variable. We don't need to call API with empty string.
@@ -20,52 +20,59 @@ class ProductDetailsViewController: UIViewController, ImagesCarouselViewControll | |||
@IBOutlet weak var optionsContainerViewHeightConstraint: NSLayoutConstraint! | |||
|
|||
var productId = String() |
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.
Remove default initializer for this variable. We don't need to call API with empty string.
var product = Variable<Product?>(nil) | ||
var selectedVariant = PublishSubject<SelectedVariant>() | ||
|
||
var productId = String() |
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.
Remove default initializer for this variable. We don't need to call API with empty string.
Added LCE base controller
Added error, loading views