Coder Social home page Coder Social logo

Comments (25)

vielucasluu avatar vielucasluu commented on August 17, 2024

screen shot 2015-09-30 at 11 35 01 am

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

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.

vielucasluu avatar vielucasluu commented on August 17, 2024

hi Raul,
I tried using your lastest version of your HoshiTextField.
I download it today. It is version 0.4.4.

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

Could you try clearing them with nil to test something? I think my conditional is wrong

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

I tried with nil but behavior are the same.
I think you should handle action same with #13.

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

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

screen shot 2015-09-30 at 09 30 12

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

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.

raulriera avatar raulriera commented on August 17, 2024

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 :/

gif

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

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.

raulriera avatar raulriera commented on August 17, 2024

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)

gif

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

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.

raulriera avatar raulriera commented on August 17, 2024

Can you try clearing it like I did in that image?

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

Yes I tried.

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

Don't know what to say then, unable to reproduce it

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

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.

raulriera avatar raulriera commented on August 17, 2024

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)

gif

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

Hi Raul,
This is my example to reproduce this issue.
https://github.com/LadyRanger1992/HoshiTextField-Issue
Thank for your help.

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

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.

vielucasluu avatar vielucasluu commented on August 17, 2024

I sorry because I forgot to "Push" with git.
Can you check again?
This really available.
Thank.

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

If you check your TextFieldsEffects.swift you are not using the latest version

from textfieldeffects.

vielucasluu avatar vielucasluu commented on August 17, 2024

I updated lastest version for all file, this resolved.
Thank for your help.

from textfieldeffects.

dilizarov avatar dilizarov commented on August 17, 2024

@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.

http://pastebin.com/Rp84JAtE

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

Hey, can you make a pull request of that fix? 😄 I would love it... thanks

from textfieldeffects.

raulriera avatar raulriera commented on August 17, 2024

Wouldn't BeingFromCurrentState fixed the issue?

from textfieldeffects.

dilizarov avatar dilizarov commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.