Skip to content

Only labels inside of a UIView can be styled #86

@mcohen75

Description

@mcohen75

I cannot, for example have a label inside of a ScrollView and apply a style to it.

This is due to an explicit check in UILabel+NUI.m at line 25.

if ([self class] == [UILabel class] &&
        [[self superview] class] == [UIView class]) {
        [self initNUI];
        if (![self.nuiClass isEqualToString:@"none"]) {
            [NUIRenderer renderLabel:self withClass:self.nuiClass];
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions