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

Implement sticky badge & use ColorResources #41

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

alpharaz0r
Copy link
Contributor

Sticky badge, analog zum Seen badge, rechts oben im Thumbnail/Post.

Implements #19.

stickyBadgeView?.layer.cornerRadius = (stickyBadgeView?.bounds.height ?? 0) / 2
stickyBadgeView?.alpha = 0.5

UIView.animate(withDuration: 0.25) { [weak self] in
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier brauchst du kein [weak self], da UIView.animate self nicht captured. Gilt z.B. auch für DispatchQueue.main.async

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ich merge es so, kannst du ja in nächsten commits wieder rausnehmen

stickyBadgeView?.layer.cornerRadius = (stickyBadgeView?.bounds.height ?? 0) / 2
stickyBadgeView?.alpha = 0.5

UIView.animate(withDuration: 0.25) { [weak self] in
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selbes hier

@NickAtGit NickAtGit merged commit 93c851d into NickAtGit:Development Jan 26, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants