Skip to content

Instantly share code, notes, and snippets.

View RyogaK's full-sized avatar

Ryoga Kitagawa RyogaK

  • Rights-Apartment, Inc.
  • Tokushima, Japan
  • 11:45 (UTC +09:00)
View GitHub Profile
//
// LogFormatter.swift
//
// Created by Ryoga Kitagawa on 3/25/16.
// Copyright © 2016 Givery. All rights reserved.
//
import Foundation
import CocoaLumberjackSwift
import CocoaLumberjack.DDDispatchQueueLogFormatter

iOS

Bases

  • Realm: Local DB
  • SwiftTask: Extended promise
  • SwiftBond: Data bindings
  • Alamofire: Http client
  • AlamofireImage: Image loader w/ image filter
  • Moya: Http API wrapper
  • Unbox: Json parser
  • Swinject: DI container
//
// FlattenedTableView.swift
//
// Created by Ryoga Kitagawa on 3/16/16.
//
import UIKit
@IBDesignable class FlattenedTableView: UITableView {
override func reloadData() {
//
// StateMachine.swift
//
// Created by Ryoga Kitagawa on 5/6/16.
//
protocol StateMachineEvent {}
protocol StateMachineState {}
class StateMachine<S: StateMachineState, E: StateMachineEvent> {
//
// UIViewController+ScrollWhenKeyboardAppear.swift
// LIFE
//
// Created by Ryoga Kitagawa on 8/8/16.
// Copyright © 2016 Givery Inc. All rights reserved.
//
import Foundation
//
// InsettedTextField.swift
//
// Created by Ryoga Kitagawa on 5/31/16.
//
import Foundation
@IBDesignable class InsettedTextField: UITextField {
@IBInspectable var insetX: CGFloat = 0.0