Get the height of ios keyboard according to the unity units

I’m making a layout which has a scroll view and a input field beneath the scroll view covering all of the screen and whenever i touch the input field the keyboard poops up and overlaps the inputfield and scroll view i want to move my layout up by height of the keyboard so my layout exactly pops up the keyboard. I’m using this code but it is not giving me the exact value of the keyboard height in ios. Please find the code attached.
Moreover I specifically need it for iOS

I’m getting wierd values so it pushes my keyboard way upto center and with some gap between my layout and keyboard.

public float m_bottom;
 public RectTransform ViewToMove;
      [SerializeField]bool move;
    
      public void FixedUpdate(){
    		if (TouchScreenKeyboard.visible) {				
    			TouchScreenKeyboard.hideInput = true;
    			m_bottom = (TouchScreenKeyboard.area.height / 2) - 85f;
    			Debug.Log ("keyboard height and y" + TouchScreenKeyboard.area.height + " bottom  " + m_bottom);
    			ViewToMove.offsetMin = new Vector2 (0, m_bottom);
    			ViewToMove.offsetMax = new Vector2 (0, 0);
    		} else
    			MoveDown ();
    	}
    	public void MoveDown(){
    		ViewToMove.offsetMin = new Vector2 (0,0);
    		ViewToMove.offsetMax = new Vector2 (0,0);
    		Debug.Log(ViewToMove.offsetMax +"	"+ ViewToMove.offsetMin);
    	}

This is my hierarchy
119273-screen-shot-2018-06-21-at-24508-pm.png

Please check the static keyboard height with input field property “hide mobile input” set to true for different iphone and ipads are

#if UNITY_IOS
switch (Device.generation) {
case DeviceGeneration.iPhone6:
case DeviceGeneration.iPhone6S:
case DeviceGeneration.iPhone7:
case DeviceGeneration.iPhone8:
keyboardHeight = 243f;
break;
case DeviceGeneration.iPhone6Plus:
case DeviceGeneration.iPhone6SPlus:
case DeviceGeneration.iPhone7Plus:
case DeviceGeneration.iPhone8Plus:
keyboardHeight = 230f;
break;
case DeviceGeneration.iPhone5S:
case DeviceGeneration.iPhoneSE1Gen:
keyboardHeight = 285f;
break;
case DeviceGeneration.iPhoneX:
keyboardHeight = 282.5f;
break;
case DeviceGeneration.iPadAir1:
case DeviceGeneration.iPadAir2:
case DeviceGeneration.iPadPro10Inch1Gen:
keyboardHeight = 213f;
break;
case DeviceGeneration.iPadPro10Inch2Gen:
keyboardHeight = 196f;
break;
case DeviceGeneration.iPadPro1Gen:
case DeviceGeneration.iPadPro2Gen:
keyboardHeight = 193f;
break;
default:
keyboardHeight = 243f;
break;
}
#endif