Skip to content

AttributedLabel does not work at all #181

Description

@cristibaluta

Hi, i'm trying to migrate to Atributika 5 with SPM. In my project i can't even make it to not crash, the AttributedLabels from xibs are crashing even if they are configured with the correct subclass and module, so i naturally created a blank project to see what's going on.

In a blank project does not crash but it does not work either, the view is simply yellow with no text. Tried also from code, same thing.

let label = AttributedLabel()
        label.frame = CGRect(x: 0, y: 0, width: 200, height: 200)
        label.backgroundColor = .yellow
        label.numberOfLines = 0
        label.font = .systemFont(ofSize: 200)
        label.textColor = .black
        label.text = "blah blah"

        self.view.addSubview(label)

What is going on?

Swift6

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