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];