Skip to content

Instantly share code, notes, and snippets.

View Ankit-Aggarwal's full-sized avatar

Ankit Aggarwal Ankit-Aggarwal

View GitHub Profile
@Ankit-Aggarwal
Ankit-Aggarwal / Reactive+Extension
Last active March 17, 2019 17:23
Adding additional feature to Reactive Struct and BindingTargetProvider present in Reactive Swift
//
// Reactive+Extension.swift
//
// Created by Ankit Aggarwal on 03/01/17.
// Copyright © 2017 Ankit Aggarwal. All rights reserved.
//
// Explanation can be found in my medium blog here :
import UIKit
@Ankit-Aggarwal
Ankit-Aggarwal / UIView+Utils.swift
Last active March 11, 2020 12:30
UiView extensions with some helper methods
//
// UIView+Utils.swift
//
// Created by Ankit Aggarwal on 22/12/16.
// Copyright © 2016 Ankit Aggarwal. All rights reserved.
//
import Foundation
import UIKit
@Ankit-Aggarwal
Ankit-Aggarwal / UIViewController+Helpers
Last active January 11, 2020 03:57
UIViewController Extension to handle keyboard updates easily
import Foundation
import UIKit
import ReactiveSwift
import Result
extension UIViewController {
typealias KeyboardStatusInfo = (height: CGFloat , duration: TimeInterval, animationOptions: UIViewAnimationOptions)
var keyboardUpdatesSignal: Signal<KeyboardStatusInfo, NoError> {