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
import UIKit | |
import RxSwift | |
import RxCocoa | |
protocol AddDiscountTableViewCellDelegate: class { | |
func didAdd(_ discount: DiscountViewModel) | |
func didCancel(_ discount: DiscountViewModel) | |
func didModify(_ discount: DiscountViewModel) | |
func didRequest(present dropDown: SelectionDropDownView, options: [DropdownItem]) | |
func didRequestAvailableProducts() -> [SelectedProductViewModel] |
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
import UIKit | |
import RxSwift | |
import RxCocoa | |
class AddDiscountTableViewCell: UITableViewCell { | |
@IBOutlet weak var discountTypeDropDown: SelectionDropDownView! | |
@IBOutlet weak var amountTextField: PrimaryTextField! | |
@IBOutlet weak var itemsDropDown: SelectionDropDownView! | |
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
import UIKit | |
protocol ChangedTitleDelegate { | |
func titleChanged(title: String) | |
} | |
class DetailViewController: UIViewController { | |
var delegate : ChangedTitleDelegate? | |