Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Views Quickstart add view programmatically #64

Open
githubhero opened this issue Feb 22, 2019 · 0 comments
Open

Custom Views Quickstart add view programmatically #64

githubhero opened this issue Feb 22, 2019 · 0 comments

Comments

@githubhero
Copy link

githubhero commented Feb 22, 2019

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)

@githubhero githubhero changed the title Custom Views Quickstart programmatically Custom Views Quickstart add view programmatically Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant