typo in widget_main.swift
var locationWrapper = LocationWrapper()
public func timeline(with context: Context, completion: @escaping (Timeline<SimpleEntry>) -> ()) {
if locationWrapper.location == nil {
locationManager.location = CLLocationManager()
}
locationWrapper.fetchLocation { location in
// call completion, update ui etc.
}
}