         }
     }
     
-    public func statisticsCollection(at date: Date, id: HKQuantityTypeIdentifier, option: HKStatisticsOptions, completion: @escaping Callback<HKStatisticsCollection?>) {
+    private func statisticsCollection(at date: Date, id: HKQuantityTypeIdentifier, option: HKStatisticsOptions, completion: @escaping Callback<HKStatisticsCollection?>) {
         let cal = Calendar(identifier: .gregorian)
         var comp1 = cal.dateComponents([.day, .month, .year], from: date)
         comp1.hour = 0

    }
}

fileprivate extension Date {
    var startOfDay: Date {
        return Calendar(identifier: .gregorian).startOfDay(for: self)

    //
    open static let shared = SwiftyHealthKit()
    private init() {}
    public let store = HKHealthStore()
    
    fileprivate var shareIdentifiers: [HKQuantityTypeIdentifier] = []
    fileprivate var readIdentifiers: [HKQuantityTypeIdentifier] = []
