Skip to content

Custom Views Quickstart add view programmatically #64

Open
@githubhero

Description

@githubhero

Not a real issue, but you can avoid this line:

var imageView: CaptionableImageView!

because you can instantiate the view on the fly, even multiple times (eg. in a loop), by declaring it locally. There's no need to make it a class member.

(https://guides.codepath.com/ios/Custom-Views-Quickstart)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions