Skip to content

Commit

Permalink
Merge pull request #2 from HamzaKiyani43/change_in_frame_of_reaction_…
Browse files Browse the repository at this point in the history
…view

Update ReactionView.swift
  • Loading branch information
HamzaKiyani43 committed Jan 9, 2023
2 parents 1d9a013 + f532fb6 commit 2e0024a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FacebookLikeReaction/Classes/ReactionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public class ReactionView: UIView {
stackView.isLayoutMarginsRelativeArrangement = true

let width = (CGFloat(imgs.count) * iconHeight) + (CGFloat(imgs.count+1) * padding)
self.frame = CGRect(x: 0, y: 0, width: width, height: iconHeight + 2 * padding)
self.frame = CGRect(x: 50, y: 0, width: width, height: iconHeight + 2 * padding)
layer.cornerRadius = frame.height/2
addSubview(stackView)
stackView.frame = frame
stackView.frame = CGRect(x: 0, y: 0, width: width, height: iconHeight + 2 * padding)

let longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(handleLongPress))
gestureView.addGestureRecognizer(longPressGesture)
Expand Down

0 comments on commit 2e0024a

Please sign in to comment.