Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- view!.frame = bounds
- view!.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
- view!.layer.borderColor = outerColor.CGColor
- view!.layer.borderWidth = 2
- view!.layer.cornerRadius = bounds.width / 2
- tlcImageView.image = tlcImage
- trcImageView.image = trcImage
- blcImageView.image = blcImage
- brcImageView.image = brcImage
- blurView.layer.masksToBounds = true
- blurView.layer.cornerRadius = (blurView.bounds.width / 2)
- blurView.userInteractionEnabled = true
- var blurTap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: "blurTap")
- blurView.addGestureRecognizer(blurTap)
- var blurLP: UILongPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: "blurLP:")
- blurView.addGestureRecognizer(blurLP)
- hTagLabel = UILabel()
- hTagLabel.frame = UIEdgeInsetsInsetRect(blurView.bounds, UIEdgeInsetsMake(0, 4, 0, 8))
- hTagLabel.adjustsFontSizeToFitWidth = true
- hTagLabel.text = hTag
- hTagLabel.textColor = UIColor.whiteColor()
- hTagLabel.textAlignment = NSTextAlignment.Center
- var vibrancyView: UIVisualEffectView = UIVisualEffectView(effect: blurView.effect)
- blurView.addSubview(vibrancyView)
- vibrancyView.addSubview(hTagLabel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement