Every time I try to launch Xcode Previews on device, I get this error: RemoteHumanReadableError: The operation couldn’t be completed. (BSServiceConnectionErrorDomain error 3.) BSServiceConnectionErrorDomain (3): ==BSErrorCodeDescription: OperationFailed Does anyone know what could be causing this error? I yet to use on-device Xcode Previews because it keeps crashing.
Search results for
[tags:wwdc20-10185]
8 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Could Apple release the Mosaic project used in WWDC20 session 10149 - https://developer.apple.com/videos/play/wwdc2020/10149/? The project uses CloudKit and/or Core Data with the new SwiftUI, and can help answer questions the community has regarding how these frameworks work together: https://developer.apple.com/forums/thread/650309 https://developer.apple.com/forums/thread/650173 https://developer.apple.com/forums/thread/649860
I would like to keep using FetchRequest for my data since I am using CoreData, however I am not sure how to apply this since in the example an object is used fore the translation of the model while FetchRequest requires a view. My first thought is to use a protocol for a view that would have the FetchRequest and do the translation then pass it up some how, but I am not sure about it. Could you provide an example on how to accomplish this, I would really appreciated it Thanks 😊
At 17:44 in the video there is a collapsed region of code in Xcode denoted Implementation with a disclosure triangle to the left of it. What is the syntax in the editor to enable sections of code like this that can be collapsed?
This was a great talk. Having the source code would make it much easier to adopt some of the ideas. I looked, but wasn't able to find it. Is there a pointer some where? Thanks, Greg
I noticed something in the Structure your app for SwiftUI previews video, at 15:56 he says: And now we can tell SwiftUI to format the text for this name at exactly the right time. This is as easy as defining a formatter... https://developer.apple.com/videos/play/wwdc2020/10149/?time=950 var body: some View { ttlet formatter = PersonNameComponentsFormatter() ttformatter.style = .long ttText((name, formatter: formatter)) } It seems to me that this is not that easy for 2 reasons. I was under the impression we are not supposed to create reference types like a formatter object in the view body, or anywhere in the View that is not property wrapped. Supposedly it causes a heap allocation and slows down SwiftUI's updates. Maybe Swift has been improved to now allocate reference types on the stack instead of the heap and this is now OK? Given that PersonNameFormatter is dependent on the locale, surely if the locale is changed then the View body will not be recomputed because the View is not detecting a change. Is the T
In the video, you show a 'Preview Assets.xcassets' for accessing preview assets. I only saw you reference adding the assets through Development Assets. Are you using a different version than the current Xcode seed? Or is there another step I need to do to get preview-only assets? Thanks, Greg
When we add observer for event UIKeyboardWillShowNotification, and add reloadInputViews logic to the observer selector, such as : [self.inputFiled reloadInputViews]; then when user tap the earth icon to switch keyboard, it leads to a never-ending loop. But it is totally fine on iOS 13 or below.