-
Notifications
You must be signed in to change notification settings - Fork 59
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
Adding captionBackgroundView #94
Adding captionBackgroundView #94
Conversation
Thank you for the great PR! I will review it today or tomorrow. |
@nakajijapan OK, thanks! |
lazy var captionBackgroundView: UIView = { | ||
var captionBackgroundView = UIView() | ||
if let captionHeight = captionHeight { | ||
var y = view.bounds.height - captionHeight - 32.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what 32.0 is the value for.
Could you change the magic number to the variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the padding of 32 below the caption label: Line 324
I will make it a constant and put a comment above the constant declaration to make it more clear!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops.... ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for great PR~~~~~~~!
But I wan you to fix one point.
🆗 |
目的 Purpose
キャプションを表示する機能はあるのですが、画面によっては見えにくくなったりしますので、
半透明なバックラウンドビューを見せたいです。
There's a feature for showing captions, but it's difficult to see depending on the screen,
so I would like to show a translucent background view.
実装内容
今後PRを考えている要素 Areas of consideration for future PRs
More customization options for caption text (shadow, etc)
Some refactoring with the animations
Some additional documentation