Upgrade to Pro — share decks privately, control downloads, hide ads and more …

新規アプリを作り始める前にチームで決めたこと

corin8823
February 28, 2017

 新規アプリを作り始める前にチームで決めたこと

新規アプリを作り始める前にチームで決めたこと
apiary: https://apiary.io/
Flux: https://facebook.github.io/flux/docs/in-depth-overview.html#content
Sketch: https://www.sketchapp.com/
git-sketch-plugin: https://github.com/mathieudutour/git-sketch-plugin
Glyphs: https://glyphsapp.com/
フロントエンド視点:デザイナーと協業して作るスタイルガイドの難易度を下げる: http://ygoto3.com/posts/make-style-guide-easy/

corin8823

February 28, 2017
Tweet

More Decks by corin8823

Other Decks in Technology

Transcript

  1. Flux(Action: ίʔυྫ) class TopAction { enum Item { case load

    case error } private let dispatcher: Dispatcher init(dispatcher: Dispatcher = .shared) { self.dispatcher = dispatcher } func loadItem() { let request = QiitaAPI.ItemRequest() Session.send(requeset) { result in switch result { case .success(let items): self.dispatcher.dispatch(obj: items, key: Item.load) case .failure(let error): self.dispatcher.dispatch(obj: error, key: Item.error) } } } }
  2. Flux(Store: ίʔυྫ) class TopStore { private(set) var items = Variable<[Item]>([])

    private(set) var error = PublishSubject<Error>() init(dispatcher: Dispatcher = .shared) { dispatcher.register(observer: self, key: TopAction.Item.load) { [weak self] (items: [Item]) in self?.items.value = items } dispatcher.register(observer: self, key: TopAction.Item.error) { [weak self] (error: Error) in self?.error.on(.next(error)) } } }
  3. Flux(ViewController: ίʔυྫ) class TopViewController: UIViewController { @IBOutlet weak var tableView:

    UITableView! private let store = TopStore() private let disposeBag = DisposeBag() override func viewDidLoad() { super.viewDidLoad() self.store.error .bindNext { error in // error handling } .addDisposableTo(self.disposeBag) self.store.items .asObservable() .bindNext { [weak self] _ in self?.tableView.reloadData() } .addDisposableTo(self.disposeBag) TopAction().loadItem() } }
  4. Colorఆٛྫ public static var lightAccent: UIColor { return Color.pink.color }

    public static var lightDanger: UIColor { return Color.red.color } public static var lightBase: UIColor { return Color.grayF6.color } public static var lightText1: UIColor { return Color.gray30.color } public static var lightText2: UIColor { return Color.gray66.color } public static var lightText3: UIColor { return Color.grayAA.color } }