// // NYFloatingSuggestViewModel.m // jiaPei // // Created by Ning.ge on 2023/6/30. // Copyright © 2023 JCZ. All rights reserved. // #import "NYFloatingSuggestViewModel.h" #import "NYFloatingSuggestViewModel.h" #import "NYComplaintListViewController.h" @implementation NYFloatingSuggestViewModel - (instancetype)init { self = [super init]; if (self) { [self setupCommands]; } return self; } - (void)setupCommands { @weakify(self) self.iconCommand = [[RACCommand alloc] initWithSignalBlock:^RACSignal * _Nonnull(id _Nullable input) { @strongify(self); NYComplaintListViewController *complaintListViewController = [[NYComplaintListViewController alloc] init]; [RQControllerHelper.currentViewController.navigationController qmui_pushViewController:complaintListViewController animated:YES completion:nil]; return [RACSignal empty]; }]; self.closeCommand = [[RACCommand alloc] initWithSignalBlock:^RACSignal * _Nonnull(id _Nullable input) { @strongify(self); self.floatingSuggestView.hidden = YES; return [RACSignal empty]; }]; } @end