mirror of
https://github.com/mas-cli/mas
synced 2024-11-23 12:03:12 +00:00
18 lines
455 B
Swift
18 lines
455 B
Swift
|
//
|
||
|
// ISStoreAccount.swift
|
||
|
// mas-cli
|
||
|
//
|
||
|
// Created by Andrew Naylor on 22/08/2015.
|
||
|
// Copyright (c) 2015 Andrew Naylor. All rights reserved.
|
||
|
//
|
||
|
|
||
|
extension ISStoreAccount {
|
||
|
static var primaryAccountIsPresentAndSignedIn: Bool {
|
||
|
return CKAccountStore.sharedAccountStore().primaryAccountIsPresentAndSignedIn
|
||
|
}
|
||
|
|
||
|
static var primaryAccount: ISStoreAccount? {
|
||
|
return CKAccountStore.sharedAccountStore().primaryAccount
|
||
|
}
|
||
|
}
|