Skip to content
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

Merged
merged 18 commits into from
Nov 7, 2017

Conversation

AntonoffEvgeniy
Copy link
Contributor

Added LCE base controller
Added error, loading views

var refreshControl: UIRefreshControl?

override func viewDidLoad() {
Copy link
Contributor

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()
Copy link
Contributor

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()
Copy link
Contributor

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()
Copy link
Contributor

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()
Copy link
Contributor

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()
Copy link
Contributor

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.

@AntonoffEvgeniy AntonoffEvgeniy merged commit f191b30 into develop Nov 7, 2017
@AntonoffEvgeniy AntonoffEvgeniy deleted the feature/add_controller_lce_states branch November 7, 2017 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants