19 lines
368 B
Swift
19 lines
368 B
Swift
//
|
|
// Errorable.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 8/3/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Protocol used for objects that require to show an error
|
|
public protocol Errorable {
|
|
|
|
/// Whether not to show the errorText
|
|
var showError: Bool { get set }
|
|
|
|
/// Text that needs to be shown if showError is true
|
|
var errorText: String? { get set }
|
|
}
|