« first day (2499 days earlier)      last day (441 days later) » 

03:53
Good Morning All
04:33
@IOS-Android hii
@ShobhakarTiwari hiii
 
2 hours later…
06:58
BOOL PMFrameCGRectIsNull( CGRect rect ){

return (isinf(rect.origin.x) || isinf(rect.origin.y) ||
isinf(rect.size.width) || isinf(rect.size.height) || isnan(rect.origin.x) || isnan(rect.origin.y) ||
isnan(rect.size.width) || isnan(rect.size.height) || CGRectIsEmpty(rect)) ? 1 : 0;

}
how to write this in swift ?
07:11
func PMFrameCGRectIsNull(rect: CGRect) -> Bool {

return Bool((rect.origin.x.isInfinite || rect.origin.y.isInfinite || rect.size.width.isInfinite || rect.size.height.isInfinite || rect.origin.x.isNaN || rect.origin.y.isNaN || rect.size.width.isNaN || rect.size.height.isNaN || rect.isEmpty()) ? 1 : 0)
}
@Hector pls check this
ya but we cant use that fun like we use in Objectie-C
if (PMFrameCGRectIsNull(newrect)) { }
from another class
@DilipTiwari
07:29
i have to check

« first day (2499 days earlier)      last day (441 days later) »