Hi I\'m writing a Fitness App which gets its Data from Apples Health app.
So far so good.
Problem: in Health app it is possible to make manually data entries
Swift 4:
let predicate = NSPredicate(format: "metadata.%K != YES", HKMetadataKeyWasUserEntered)
And if you have two predicates, useCompoundPredicate:
let compoundPredicate = NSCompoundPredicate(type: .and, subpredicates: [predicate1, predicate2])