From 257cac3794860e62ed463eeb764a3e30384688f4 Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Tue, 30 Apr 2019 13:47:08 -0400 Subject: [PATCH] file --- .../Molecules/MVMCoreUIMoleculeViewProtocol.h | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 MVMCoreUI/Molecules/MVMCoreUIMoleculeViewProtocol.h diff --git a/MVMCoreUI/Molecules/MVMCoreUIMoleculeViewProtocol.h b/MVMCoreUI/Molecules/MVMCoreUIMoleculeViewProtocol.h new file mode 100644 index 00000000..12557967 --- /dev/null +++ b/MVMCoreUI/Molecules/MVMCoreUIMoleculeViewProtocol.h @@ -0,0 +1,33 @@ +// +// MVMCoreUIMoleculeViewProtocol.h +// MVMCoreUI +// +// Created by Scott Pfeil on 2/11/19. +// Copyright © 2019 Verizon Wireless. All rights reserved. +// + +#import +@class DelegateObject; + +@protocol MVMCoreUIMoleculeViewProtocol + +// Sets up the ui based on the json +- (void)setWithJSON:(nullable NSDictionary *)json delegateObject:(nullable DelegateObject *)delegateObject additionalData:(nullable NSDictionary *)additionalData; + +@optional + +// Called after init to provide an early setter for any molecule specific logic +- (void)setAsMolecule; + +// Notifies the creator that the view needs to be constrained in a view. +- (BOOL)needsToBeConstrained; + +// The alignment for the molecule if constrained. +- (UIStackViewAlignment)moleculeAlignment; + +// For the molecule list to load more efficiently. ++ (CGFloat)estimatedHeightForRow; + +@end + +