mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 23:03:27 +01:00
20 lines
386 B
Swift
20 lines
386 B
Swift
//
|
|
// Source+Trusted.swift
|
|
// SideStore
|
|
//
|
|
// Created by Fabian Thies on 04.02.23.
|
|
// Copyright © 2023 SideStore. All rights reserved.
|
|
//
|
|
|
|
import AltStoreCore
|
|
|
|
extension Source {
|
|
var isOfficial: Bool {
|
|
self.identifier == Source.altStoreIdentifier
|
|
}
|
|
|
|
var isTrusted: Bool {
|
|
UserDefaults.shared.trustedSourceIDs?.contains(self.identifier) ?? false
|
|
}
|
|
}
|