From 56b4142c14833a77e6770b352648d159ce767125 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 21 Aug 2024 14:07:59 -0500 Subject: [PATCH] added isEnabled Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift b/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift index 8b68fb0a..7f43b8bb 100644 --- a/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift +++ b/MVMCoreUI/Atomic/Atoms/FormFields/FormFieldModel.swift @@ -137,3 +137,7 @@ import VDS try container.encode(inverted, forKey: .inverted) } } + +extension FormFieldModel { + public var isEnabled: Bool { enabled && !readOnly } +}