let heart = MTFloatyView(frame: CGRect(x: 0, y: 0, width: 18, height: 18))
let imageView = UIImageView(frame: CGRect(origin: .zero, size: CGSize(width: 18, height: 18)))
imageView.image = UIImage(named: "heart")
heart.addSubview(imageView)
self.view.addSubview(heart)
heart.center = self.btnReaction.superview!.convert(self.btnReaction.center, to: self.view)
heart.animateInView(view: self.view)
mrugeshtank / mtfloatingview Goto Github PK
View Code? Open in Web Editor NEWPeriscope-Like floating animation
License: MIT License