How to apply shadow to UIBezierPath

UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRect: CGRectMake(x,y,width,height)];
[UIColor.grayColor setFill];
[rectanglePath fill];

--

--

--

iOS Developer, Triple graduated, Passionate, Love workout, blogger

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

UILabel text underlining iOS

Combine Core Image Filters and CIDetector to Build Useful iOS Photo & Video Processing Apps

Getting Main Queue iOS

How iOS 15 makes your app launch faster

SWIFT, RASPBERRYPI, BLUETOOTH — X — FILE PART 2

Reflection ViewModifier

Detect NSFW Content in an Image in Swift

SectionedFetchRequest, sweet, sweet automagic goodness!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mr.Javed Multani

Mr.Javed Multani

iOS Developer, Triple graduated, Passionate, Love workout, blogger

More from Medium

SwiftUI with Coordinator Flow Controllers

What is CollectionView ?

User Location With Core LocationUI in Xcode 13

MVVM-C Xcode Template to reduce development time