mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-12 03:21:09 +00:00
22 lines
597 B
Swift
22 lines
597 B
Swift
//
|
|
// AppGroup.swift
|
|
// QuickDrop
|
|
//
|
|
// Created by Leon Böttger on 23.08.25.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Contains information about the app group used to share data between main app and widget
|
|
struct AppGroup {
|
|
|
|
/// Identifier of the app group
|
|
static let appGroupName = "group.com.leonboettger.neardrop"
|
|
static let appGroupUD = UserDefaults(suiteName: AppGroup.appGroupName)!
|
|
|
|
/// Returns the shared App Group directory
|
|
static var appGroupDirectory: URL? {
|
|
return FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupName)
|
|
}
|
|
}
|