From cc2783d3be503f03570d346fb0ea3ff37c18b8f2 Mon Sep 17 00:00:00 2001 From: Kyle Matthew Hedden Date: Tue, 3 Nov 2020 10:03:36 -0500 Subject: [PATCH] add comments --- .../MVMCoreViewControllerProgrammaticMappingObject.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MVMCore/MVMCore/ViewControllerMapping/MVMCoreViewControllerProgrammaticMappingObject.h b/MVMCore/MVMCore/ViewControllerMapping/MVMCoreViewControllerProgrammaticMappingObject.h index fc03b06..b755710 100644 --- a/MVMCore/MVMCore/ViewControllerMapping/MVMCoreViewControllerProgrammaticMappingObject.h +++ b/MVMCore/MVMCore/ViewControllerMapping/MVMCoreViewControllerProgrammaticMappingObject.h @@ -10,14 +10,16 @@ @interface MVMCoreViewControllerProgrammaticMappingObject : NSObject -// View Controller Class, for loading by class. +/// View Controller Class, for loading by class. @property (nonnull, strong, nonatomic) Class viewControllerClass; +/// Configuration block executed on creation of the controller before loading. @property (nullable, copy, nonatomic) void (^configureHandler)(UIViewController * _Nonnull); -// Initializes with the given class. +/// Initializes with the given class. - (nullable id)initWithClass:(nonnull Class)viewControllerClass; +/// Initializes with the given class. Assigns a configuration block triggered on intiailization which allows additional configuraiton of the view controller before its loaded, i.e. injecting top level dependencies. - (nullable id)initWithClass:(nonnull Class)viewControllerClass configureHandler:(void(^_Nonnull)(UIViewController * _Nonnull))configureBlock; @end