Comparing two CGRects January 8, 2023 by Tarik Use this: if (CGRectEqualToRect(self.view.frame, rect)) { // do some stuff }