Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. func filteredExercises(with propertyKeyPath: #keyPath, filter: Any) {
  2.  
  3. do {
  4. let filteredExercises = try CoreStore.fetchAll(
  5. From<ExerciseEntity>(),
  6. Where<ExerciseEntity>("%K = %@", #keyPath(ExerciseEntity.muscle.name), filter)
  7. )
  8.  
  9. } catch {
  10.  
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement