- 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
This file contains 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
// | |
// InsettedTextField.swift | |
// | |
// Created by Ryoga Kitagawa on 5/31/16. | |
// | |
import Foundation | |
@IBDesignable class InsettedTextField: UITextField { | |
@IBInspectable var insetX: CGFloat = 0.0 |
This file contains 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
// | |
// UIViewController+ScrollWhenKeyboardAppear.swift | |
// LIFE | |
// | |
// Created by Ryoga Kitagawa on 8/8/16. | |
// Copyright © 2016 Givery Inc. All rights reserved. | |
// | |
import Foundation |
This file contains 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
// | |
// StateMachine.swift | |
// | |
// Created by Ryoga Kitagawa on 5/6/16. | |
// | |
protocol StateMachineEvent {} | |
protocol StateMachineState {} | |
class StateMachine<S: StateMachineState, E: StateMachineEvent> { |
This file contains 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
// | |
// FlattenedTableView.swift | |
// | |
// Created by Ryoga Kitagawa on 3/16/16. | |
// | |
import UIKit | |
@IBDesignable class FlattenedTableView: UITableView { | |
override func reloadData() { |
This file contains 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
// | |
// LogFormatter.swift | |
// | |
// Created by Ryoga Kitagawa on 3/25/16. | |
// Copyright © 2016 Givery. All rights reserved. | |
// | |
import Foundation | |
import CocoaLumberjackSwift | |
import CocoaLumberjack.DDDispatchQueueLogFormatter |
This file contains 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 Entity {} | |
struct Token { | |
let entity = Entity() | |
} | |
func asyncProcess() -> Token { | |
let token = Token() | |
weak var entity = token.entity | |
dispatch_async(dispatch_get_main_queue) { | |
// 重くてキャンセルできない処理 |
This file contains 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
// | |
// AlertHasHeaderController.swift | |
// | |
// Created by Ryoga Kitagawa on 8/24/16. | |
// Copyright © 2016 Ryoga Kitagawa. All rights reserved. | |
// | |
import UIKit | |
final class AlertHasHeaderController: UIAlertController { |
This file contains 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
// | |
// UIAlertController+Rx.swift | |
// | |
import Foundation | |
import RxSwift | |
protocol RxAlertActionType { | |
associatedtype Result |
This file contains 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 RxSwift | |
import Result | |
public struct ResultErrorEnvelope: ErrorType { | |
let originError: ErrorType | |
} | |
public extension ObservableType { | |
public func catchAndConvertToResult() -> Observable<Result<E, ResultErrorEnvelope>> { | |
return map(Result.Success) |
OlderNewer