 	
 	// MARK: - KBO -
 	
-	public override func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [String : AnyObject]?, context: UnsafeMutablePointer<Void>) {
+	override func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [String : AnyObject]?, context: UnsafeMutablePointer<Void>) {
 		
 		if  let keyPath = keyPath,
 			let superview = superview
 			where object === superview && keyPathsToObserve.contains(keyPath) {
+				
 			delegate.textInputAccessoryView(didChnageToFrame: superview.frame)
 		}
 	}

//  Created by Aryan Ghassemi on 8/16/15.
//  Copyright © 2015 Aryan Ghassemi. All rights reserved.
//

import UIKit

@objc public protocol TextInputAccessoryViewDelegate {
	func textInputAccessoryView(didChnageToFrame rect: CGRect)
}

public class TextInputAccessoryView: UIView {
	
	public weak var delegate: TextInputAccessoryViewDelegate!
	private var superViewFrame: CGRect?
	private var isObserving = false
	private let keyPathsToObserve = ["frame", "center"]
	let myContext = UnsafeMutablePointer<()>()
	
	// MARK: - Initialization -
	

		removeObserversIfNeeded()
	}
	
	// MARK: - UIView Methods -
	
	override func layoutSubviews() {
		super.layoutSubviews()
		
		if let superview = superview {
