This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages: | |
| - build | |
| - deploy | |
| build prod: | |
| image: node:10.15.0-stretch | |
| stage: build | |
| only: | |
| - tags | |
| script: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class OverviewMintsightCardPartController: CardPartsViewController, MintsightTypeProtocol, NoTopBottomMarginsCardTrait { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| var cardParts: [CardPartView] = [] | |
| let title = CardPartTextView(type: .title) | |
| viewModel.title.asObservable().bind(to: title.rx.text).disposed(by: bag) // This is where we are binding to the viewModel | |
| title.textColor = brightFontColor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| realmNotification = MMProvidersRealm.allProviders().addNotificationBlock({[weak self] (results, change, error) in | |
| guard let this = self, let providers = results as? [MMProvidersRealm], error == nil else { return } | |
| // Apply some logic on providers | |
| this.title.value = computedTitle | |
| this.description.value = computedDescription | |
| this.state.value = .hasData | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class OverviewMintsightViewModel { | |
| var type = Variable<MintsightType>(.unknown) | |
| var thumbnailImage: Variable<UIImage?> = Variable(nil) | |
| var title = Variable<String>("") | |
| var description = Variable<String>("") | |
| var state:Variable<CardState> = Variable<CardState>(.hasData) | |
| init() { ... } | |
| } |