Skip to content

IB Crash #15

@ghost

Description

The Interface Builder crashes with the following error:
Pods/LabelSwitch/LabelSwitch/Classes/LabelSwitch.swift: 63: 28: Fatal error: Use of unimplemented initializer 'init(frame:)' for class 'LabelSwitch.LabelSwitch'

I think the only thing required is to implement init(frame:). It could be as simple as this:

public override init(frame: CGRect) {
    self.init(center: .zero, leftConfig: .defaultLeft, rightConfig: .defaultRight)
}

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