//
//  UserDefaults.swift
//  LibreDirectClient
//
//  Created by Julian Groen on 13/05/2020.
//  Copyright © 2020 Julian Groen. All rights reserved.
//
 
import Foundation

extension UserDefaults {
    public func optional(forKey defaultName: String) -> Bool? {
        if let value = value(forKey: defaultName) {
            return value as? Bool
        }

        return nil
    }
}
