From 5cd7797550616ef4e9fb0823af3ef6fa9e6e9dde Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Tue, 5 Mar 2019 11:53:11 -0500 Subject: [PATCH] ONVIK-12121 --- MVMCoreUI/Atoms/Views/MFLabel.h | 2 ++ MVMCoreUI/Atoms/Views/MFLabel.m | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/MVMCoreUI/Atoms/Views/MFLabel.h b/MVMCoreUI/Atoms/Views/MFLabel.h index a7386425..10735726 100644 --- a/MVMCoreUI/Atoms/Views/MFLabel.h +++ b/MVMCoreUI/Atoms/Views/MFLabel.h @@ -38,6 +38,8 @@ // Getters + (nonnull MFLabel *)label; +// This is for swift files. Swift is not able to find MFLabel.label() ++ (nonnull MFLabel *)standardLabel; + (nonnull MFLabel *)commonLabelBodyWithSize:(CGFloat)size scale:(BOOL)scale; + (nonnull MFLabel *)commonLabelBodyBold:(BOOL)scale; + (nonnull MFLabel *)commonLabelBodyLighter:(BOOL)scale; diff --git a/MVMCoreUI/Atoms/Views/MFLabel.m b/MVMCoreUI/Atoms/Views/MFLabel.m index 39aeb851..3dc47e00 100644 --- a/MVMCoreUI/Atoms/Views/MFLabel.m +++ b/MVMCoreUI/Atoms/Views/MFLabel.m @@ -65,6 +65,12 @@ return label; } +// This is for swift files. Swift is not able to find MFLabel.label() ++ (nonnull MFLabel *)standardLabel { + MFLabel *label = [MFLabel label]; + return label; +} + + (nonnull MFLabel *)commonLabelB2:(BOOL)scale { MFLabel *label = [MFLabel label]; [label styleB2:scale];