Skip to content
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

Layout of horizontal slider looks weird on iOS 12 #11

Closed
benjaminfischer opened this issue Jul 16, 2018 · 7 comments
Closed

Layout of horizontal slider looks weird on iOS 12 #11

benjaminfischer opened this issue Jul 16, 2018 · 7 comments

Comments

@benjaminfischer
Copy link
Contributor

benjaminfischer commented Jul 16, 2018

Xcode 10.0 beta 3 (10L201y)

…moving the slider crashes the App: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Multiplier is not finite! That's illegal. multiplier:inf'

simulator screen shot - iphone 8 - 2018-07-16 at 21 18 34

@yonat
Copy link
Owner

yonat commented Jul 17, 2018

Oy vey, thanks for the report!
I hope to get to it before iOS 12 is released...

@Arthur-Guillaume
Copy link

Hi,

I have the same issue on iOS 12.

@yonat do you think you'll have time to fix it before the release of iOS 12 ?

@yonat
Copy link
Owner

yonat commented Aug 24, 2018

It's on my list, hope to get to it soon.

@yonat yonat closed this as completed in 0964432 Aug 31, 2018
@yonat
Copy link
Owner

yonat commented Aug 31, 2018

It seems iOS 12 β has some problem with the .rightMargin constraint.
I pushed a workaround you can use, but I'll wait until the official iOS 12 release before bumping the pod version, because this problem may be fixed by then.

@Arthur-Guillaume
Copy link

Thanks for the feedback ans the temporary fix.

@Elshad
Copy link

Elshad commented Jan 30, 2019

My solution for this:

Changes in MultiSlider.swift file:
screen shot 2019-01-30 at 16 09 57

Result:
screen shot 2019-01-30 at 16 13 22

@kavin06
Copy link

kavin06 commented Mar 11, 2019

I am facing this error.Any one help ios 12.u fix this issue? please help me to solve this problem.

*** Assertion failure in -[NSLayoutConstraint _setMultiplier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1562/Foundation/Layout.subproj/NSLayoutConstraint.m:196
2019-03-11 12:39:32.198830+0530 DCON[3784:1325822] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Multiplier is not finite! That's illegal. multiplier:inf'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants