Use Swift form for creating CGRect