You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating mocks for functions with input parameters on different lines, would it be possible to have them auto-indent based on Xcode's default ctrl-i shortcut? The end result would be input parameters aligned at their first character. Examples below.
Current:
varinvokedFetchRetailer= false
varinvokedFetchRetailerCount=0varinvokedFetchRetailerParameters:(identifier:Int,Void)?varinvokedFetchRetailerParametersList=[(identifier: Int, Void)]()varstubbedFetchRetailerCompletionResult:(Result<Retailer,Error>,Void)?func fetchRetailer(for identifier:Int,
completion:@escaping((Result<Retailer,Error>)->Void)){
invokedFetchRetailer = true
invokedFetchRetailerCount +=1
invokedFetchRetailerParameters =(identifier,())
invokedFetchRetailerParametersList.append((identifier,()))
if let result = stubbedFetchRetailerCompletionResult {completion(result.0)}}
Desired:
varinvokedFetchRetailer= false
varinvokedFetchRetailerCount=0varinvokedFetchRetailerParameters:(identifier:Int,Void)?varinvokedFetchRetailerParametersList=[(identifier: Int, Void)]()varstubbedFetchRetailerCompletionResult:(Result<Retailer,Error>,Void)?func fetchRetailer(for identifier:Int,
completion:@escaping((Result<Retailer,Error>)->Void)){ // <------- NOTE "completion" aligns with "for".
invokedFetchRetailer = true
invokedFetchRetailerCount +=1
invokedFetchRetailerParameters =(identifier,())
invokedFetchRetailerParametersList.append((identifier,()))
if let result = stubbedFetchRetailerCompletionResult {completion(result.0)}}
The text was updated successfully, but these errors were encountered:
Hello!
When generating mocks for functions with input parameters on different lines, would it be possible to have them auto-indent based on Xcode's default
ctrl-i
shortcut? The end result would be input parameters aligned at their first character. Examples below.Current:
Desired:
The text was updated successfully, but these errors were encountered: