###Rewrite Objective-C code in Swift with the help of XCode’s Regular Expression replace: ##Property declarations @property (nonatomic, strong) NSArray *array1; @property (nonatomic, strong) NSArray *array2; @property (nonatomic, strong) NSArray *array3; @property (nonatomic, strong) NSMutableDictionary *dictionary; @property (nonatomic, strong) AwesomeObject *object; @property (nonatomic, assign) BOOL awesomeValue; Replace: @property \((.*)\) (.*) \*?(.*); With: var $3:$2? Result: var array1:NSArray? var array2:NSArray? var array3:NSArray? var dictionary:NSMutableDictionary? var object:AwesomeObject? var awesomeValue:BOOL? Please enable JavaScript to view the comments powered by Disqus.