diff --git a/MVMCoreUI/Atoms/Views/MFLabel.h b/MVMCoreUI/Atoms/Views/MFLabel.h index a9c11358..411f8aa9 100644 --- a/MVMCoreUI/Atoms/Views/MFLabel.h +++ b/MVMCoreUI/Atoms/Views/MFLabel.h @@ -41,6 +41,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 17551385..522b5ed5 100644 --- a/MVMCoreUI/Atoms/Views/MFLabel.m +++ b/MVMCoreUI/Atoms/Views/MFLabel.m @@ -110,6 +110,12 @@ return [[MFLabel alloc] initWithFrame:CGRectZero]; } +// 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];