easy-pi icon indicating copy to clipboard operation
easy-pi copied to clipboard

Constraints warnings for programmatically established views.

Open RizulSharma opened this issue 2 years ago • 3 comments

Hi, I really liked this library. However, if I am using overlays on programmatically established views (constrained via code) I don't see any overlay and I get several UI warnings instead. Can you help ?

RizulSharma avatar Sep 27 '21 08:09 RizulSharma

Hi! It shouldn't matter how you're building your views. You only need to make sure, view's constraints are set before calling overlay functions. Can you share a piece of code of your view and how you're trying to build overlay? it may help to resolve your issue.

saeid avatar Sep 27 '21 16:09 saeid

Hi, Thanks for your reply. I managed to use that but there is one more thing, what should I change in order to reverse the animation being shown from startPoint to endPoint? I want animation from the helpText to the UI element we are showing help on.

Thanks in advance :) Rizul

On Mon, Sep 27, 2021 at 10:15 PM Saeid Basirnia @.***> wrote:

Hi! It shouldn't matter how you're building your views. You only need to make sure, view's constraints are set before calling overlay functions. Can you share a piece of code of your view and how you're trying to build overlay? it may help to resolve your issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/saeid/SwiftyOverlay/issues/6#issuecomment-928062407, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSNMTO3TW7ATVS6CJ2SBA3UECNUFANCNFSM5EZ6AZKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Cheers, Rizul

RizulSharma avatar Oct 07 '21 13:10 RizulSharma

@RizulSharma good to hear you manage to solve your issue. related to reversing the animation, I'm afraid I didn't understand your need here. can you elaborate more on this? In case you need to have the line animation from the view to the text, unfortunately that's not supported at the moment, but let me know if this is the case and we can figure out a solution! :)

saeid avatar Oct 10 '21 10:10 saeid