codepath / codepath/ios_guides
Custom Views Quickstart add view programmatically
Open
- Dominant language
- Swift
- Stars
- 2.9k
- Forks
- 466
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.