Skip to content

Not updated with changes to tutorial #1

@NiyogRay

Description

@NiyogRay

Hi Lee,

There are updates to this article:
https://appcodelabs.com/create-ibdesignable-gradient-view-swift

that are not yet in the code. Like this one:

    override var frame: CGRect {
        didSet {
            updateGradient()
        }
    }

    override func layoutSubviews() {
        super.layoutSubviews()
        // this is crucial when constraints are used in superviews
        updateGradient()
    }

Could you please update the code in repo to match the article? Thanks.

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