Posts

Post not yet marked as solved
0 Replies
412 Views
I want to drive SwiftUI views with the new @FetchRequestproperty wrapper from the results of a fetch request. The first level, so just using a Text in the same struct where the fetch request is used, works fine and the view is updated if core data changes. If I integrate a LandmarkRow(landmark: landmark)this will not be updated anymore (but if copied the exact same code to the main view, it works)Essentially I want to include views with the details as in the landmarks tutorial:ForEach(userData.landmarks) { landmark in if !self.userData.showFavoritesOnly || landmark.isFavorite { NavigationLink(destination: LandmarkDetail(landmark: landmark)) { LandmarkRow(landmark: landmark) } } }Maybe there is a tutorial or some more information on how to use @FetchRequst and inherited views correctly?Any idea on how to proceed?
Posted
by an-erd.
Last updated
.
Post not yet marked as solved
1 Replies
591 Views
When I install the Landmarks demo I getdyld: Symbol not found: _$s7SwiftUI7BindingVyxGAA0C11ConvertibleAAMc Referenced from: /var/containers/Bundle/Application/C33D60FD-1755-4C71-BE6D-539910E65F6E/Landmarks.app/Landmarks Expected in: /System/Library/Frameworks/SwiftUI.framework/SwiftUI in /var/containers/Bundle/Application/C33D60FD-1755-4C71-BE6D-539910E65F6E/Landmarks.app/LandmarksI use Xcode 11 beta 5, tested on iOS 13 beta 6 and 7 on real device iPhone SE. Using the simulator is working fine.In my own project I have the same issue, I got some warnings from Xcode 11 beta 5 likesubscript(_:)' is deprecated: See Release Notes for migration pathAfter rewriting the code as in the release notes and the code segments in other forums, the message is gone, but the issue still exists.Anyone haven the same issue with the Landmarks demo, too?
Posted
by an-erd.
Last updated
.