Skip to content
This repository has been archived by the owner on Sep 2, 2018. It is now read-only.
/ ClodKit Public archive

Nyah!!! Helpers for working with app groups

License

Notifications You must be signed in to change notification settings

asmallteapot/ClodKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClodKit

Usage

guard let appGroup = AppGroup("group.com.asmallteapot.ClodKit_Example") else {
    fatalError("Nyah! Couldn't get the example app group")
}

// access the app group's shared user defaults
if !self.appGroup.userDefaults.bool(forKey: "ClodKitUsageViewed") {
    // get the URL or path for the app group's shared container
    print(appGroup.containerPath)
    print(appGroup.containerURL)

    // update the defaults key
    appGroup.userDefaults.set(true, forKey: "ClodKitUsageViewed")
}

Author

Ellen Teapot / @asmallteapot

License

ClodKit is available under the MIT license. See the LICENSE file for more info.

About

Nyah!!! Helpers for working with app groups

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published