SkyFloatingLabelTextField icon indicating copy to clipboard operation
SkyFloatingLabelTextField copied to clipboard

Align placeholder text with icon

Open ImranIB opened this issue 8 years ago • 6 comments

Hello! Any one can have an idea how to align placeholder text with icon. Check the screenshot as well. simulator screen shot 09-feb-2017 2 31 31 pm

ImranIB avatar Feb 09 '17 09:02 ImranIB

There isn't currently any first party support for this, but we are open to PRs contributing it.

k0nserv avatar Feb 13 '17 13:02 k0nserv

Hey, I played around with SkyFloatingLabelTextFieldWithIcon you can set the variable iconMarginBottom to position the icon. Here is the code SkyFloatingLabelTextFieldWithIcon#L65-L71

bogren avatar Feb 19 '17 11:02 bogren

iconMarginBottom set icon position from the bottom as u see in above image, but how I can I align label with icon?

ImranIB avatar Feb 20 '17 09:02 ImranIB

I think you have to do it manually atm. SkyFloatingLabelTextFieldWithIcon sets the frame based on the variable. I think aligning the icon and label make sense, I can see what I can do. Please submit a PR if you find a solution :)

bogren avatar Feb 20 '17 10:02 bogren

I have used iconMarginBottom for now but it would be nice to autoalign this.

ugenlik avatar Apr 27 '17 15:04 ugenlik

Any solution for this already?

eliasbellido avatar May 29 '18 19:05 eliasbellido