how to get value for object with type XCUIElementTypeTextField on IOS?

How to get value for object with type XCUIElementTypeTextField on IOS? I can set value for the object but I can’t get the value of that object.