-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Precondition failure: invalid value type for attribute #60
Comments
Hi @rakesh1504 , This seems to be an issue related to I've found this is an issue reported to Apple, see here. The error doesn't say much, sorry I can't help you more. I can just say that depending on how you have your views arranged, you might run into this error or not. Meaning that if for some reason, you wrap the whole body or part of it into a My advice is, take your code and start removing parts of it and see when you don't see that error. When you've identified the exact part that makes it crash, try to change something (maybe simply add another modifier) to make it work. There are plenty of potential "solutions" in SO. Some more useful links: |
HI @rakesh1504, I'm testing this on the new Xcode 12 beta and this issue has been fixed in SwiftUI 2.0. In my case, I can reproduce the crash when building with Xcode 11.5 but not when building with Xcode 12 beta |
Thank you @fermoya for the info. I will check. |
I am getting crash when I try to view Image in pager.
xcode 11.5
Simulator iPhone 11 Pro
iOS 13.5
Filename: SizeViewModifier.swift
line 23
My code where I am using it.
`
import CoreData
import SwiftUI
import SwiftUIPager
`
EDIT: It is working fine in Xcode 11.3.1
The text was updated successfully, but these errors were encountered: