Cleveroad / Cleveroad/CRNetworkButton

Invalid layout when using button second time

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
645
Forks
53
PR merge metrics
No merged PRs in 30d

Description

When user taps on the button second time after error animation, button shows with invalid layout.
See attached image, dots are outside ring now

My code:
`if error {
loginButton.stopByError()
loginButton.isSelected = false
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5, execute: {
self.loginButton.resetToReady()
})
} `

![img_1370](https://cloud.githubusercontent.com/assets/2076659/20230767/4253535c-a866-11e6-8c13-43538e236673.jpg)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.