-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting marginWidth between Icon and Title doesn't work #151
Comments
This is a choppy fix but it works for because everything else I tried didn't work. Inside the saleButton closure, I had to add 4 empty spaces before I set the string for the title: I changed this:
to this and the spacing is now correct
|
I have the same problem. It seems that it is not influenced by the version of DLRadioButton but by the iOS Version. With the same build in iOS 11, the marginWidth seems to work correctly. |
@Adarkas2302 Yeah I noticed the same thing, it worked fine for iOS 11. Try something like this:
Of course if there is anyVersionLessThenTwelve.12.x this will be true |
Thanks for the help, I did it like this already. |
Before I upgraded to Swift 4.2 - Xcode 10.1 the DLRadioButton I used had an even spacing between the icon and the title. I never set the spacing and everything worked fine. After the upgrade and pod upgrade the icon and the title overlaps.
I tried to set the marginWidth in code to anything that would definitely add spacing like 50.0 but the overlap stays.
How can I fix the spacing?
The text was updated successfully, but these errors were encountered: