Comments (25)
from textfieldeffects.
Hey Luc,
Could you tell me which version are you running? I have never tried them against Objective-C, but they should behave the same
from textfieldeffects.
hi Raul,
I tried using your lastest version of your HoshiTextField.
I download it today. It is version 0.4.4.
from textfieldeffects.
Could you try clearing them with nil
to test something? I think my conditional is wrong
from textfieldeffects.
I tried with nil
but behavior are the same.
I think you should handle action same with #13.
from textfieldeffects.
The thing is that I have a property observer on text, so any changes to it should fall into this , this looks correct in a playground... I will try it in the effects directly
from textfieldeffects.
I think it not really correct, because text = ""
may be difference with your text.
Because it not same memoris address.
you can check by count text.length = 0 or not.
from textfieldeffects.
I ran a test on the demo project itself and it seems to work correctly... can you try using text = @""
instead? Is either that or a bug between Objective-C and Swift property observers, can't really think of anything else at the moment :/
from textfieldeffects.
I tried to clean my project, rebuild swift file to parse to Objective-C.
But it not work correct.
Can you help me adding more option to check TextField are emty by texttfield.text.length = 0?
I think it will help.
from textfieldeffects.
When are you calling your clear method? Just tested it in Objective-C and it works as well. BUT, if you call the clear too quickly before the animation is finished, the field won't go down apparently (I can reproduce the bug if I set it on viewDidLoad and clear it on viewDidAppear)
from textfieldeffects.
I has a button to clear the Text-field, when I inputted value to textfield, I tappd the button to check, if not correct, I clean the textfield
from textfieldeffects.
Can you try clearing it like I did in that image?
from textfieldeffects.
Yes I tried.
from textfieldeffects.
Don't know what to say then, unable to reproduce it
from textfieldeffects.
HI Raul,
I know about your issue.
When I tried to set more than 3
textfield to emty. This bug will be appear.
from textfieldeffects.
Closing this, if you have a project that can reproduce this error please share it... attaching an example with 3 textfields (which won't matter how many there are)
from textfieldeffects.
Hi Raul,
This is my example to reproduce this issue.
https://github.com/LadyRanger1992/HoshiTextField-Issue
Thank for your help.
from textfieldeffects.
Hey,
Several files are not included in the project and I don't see any code that is actually using the textfield effects.
Lastly, don't include the TextFieldEffects.h into your project
from textfieldeffects.
I sorry because I forgot to "Push" with git.
Can you check again?
This really available.
Thank.
from textfieldeffects.
If you check your TextFieldsEffects.swift
you are not using the latest version
from textfieldeffects.
I updated lastest version for all file, this resolved.
Thank for your help.
from textfieldeffects.
@raulriera I'm running into the issue when clearing too quickly and the field not going down. A fix in the works? Any quick fix you can think of? I can't say I know why it happens, but perhaps it is a clash of the animation going up not letting the animation to go down to fire? Might be able to keep a flag on clear happening too quickly and if it does, call clear after a small delay or something.
Edit:
Actually, I think the error happens because the completion block fires off in animateViewsForTextEntry() so if you clear early, the completion block of the other animation forces it back up.
Update: I fixed it. My previous assumption was correct as to what caused the problem. Let me know what you think.
from textfieldeffects.
Hey, can you make a pull request of that fix? 😄 I would love it... thanks
from textfieldeffects.
Wouldn't BeingFromCurrentState fixed the issue?
from textfieldeffects.
@raulriera Not sure I follow. You already use .BeginFromCurrentState and it doesn't work.
I'll make a pull request.
from textfieldeffects.
Related Issues (20)
- Place holder font is different than the standard font HOT 11
- Change Placeholder to attributed font HOT 9
- Clear-Button is not being displayed HOT 1
- Hoshi Placeholder wrongly placed when Textfield is firstResponder HOT 14
- Font types of placeholder and content don't match HOT 4
- Placeholder label text not changing HOT 11
- Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2 compiler HOT 5
- HoshiTextField inactive state line does not appear HOT 3
- Issue in KaedeTextField Effect. HOT 1
- Placeholder not returning to original position. HOT 2
- Use of .fontName deprecated in Xcode 11 HOT 3
- It is not working on black background for view and white background for textfield HOT 1
- ailed to set (borderActiveColor) user defined inspected property on (TextFieldEffects.YokoTextField) this class is not key value coding-compliant for the key borderActiveColor. HOT 1
- TextField overlap rightview HOT 2
- How to move placeholder to center and stays there when cursor is ready
- Round Corner on Akira HOT 2
- Issue with some Fonts
- Issue with placeholder in iOS 15
- placeholder. floating not working proper
- Privacy Manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textfieldeffects.