Naldo Lopes
Naldo Lopes

Reputation: 1201

How I get bounds UIImageView Swift

I have some trouble here with this...

How I convert this piece of code to Swift:

imageView.layer.shadowPath = [UIBezierPath bezierPathWithRect:yourImageView.bounds].CGPath;

Upvotes: 0

Views: 2206

Answers (1)

Jack
Jack

Reputation: 16855

Here you go:

imageView.layer.shadowPath = UIBezierPath(rect:yourImageView.bounds).CGPath

Upvotes: 7

Related Questions