Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created October 15, 2019 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/c4a7e95e4a1ab81a140833864d9dfc44 to your computer and use it in GitHub Desktop.
Save fitomad/c4a7e95e4a1ab81a140833864d9dfc44 to your computer and use it in GitHub Desktop.
internal struct FavoritesView : View
{
//// Request donde se obtiene todas las sesiones marcadas como **favoritas** por el usuario
@FetchRequest(fetchRequest: DataManager.shared.fetchRequestFavoriteSessions()) var favoriteSessions: FetchedResults<Favorite>
/// Vista
internal var body: some View
{
List(self.favoriteSessions) { favoriteSession in
FavoriteCellView(for: favoriteSession)
.padding([ .top, .bottom ], 8)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment