Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
extension WidgetPlantProvider {
static let sharedDataFileURL: URL = {
let appGroupIdentifier = ""
if let url = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupIdentifier) {
return url.appendingPathComponent("Plants.plist")
else {
preconditionFailure("Expected a valid app group container")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment