UIEdgeInsetsInsetRect not working in swift 5

Solution:

 The below code is used in swift 4.In swift 5 it shows as error.

Swift 4:
UIEdgeInsetsInsetRect(relativeFrame, self.touchAreaEdgeInsets)

swift 5:

relativeFrame.inset(by: self.touchAreaEdgeInsets)


Relative frame is known as the frame that you want to set the edges.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift