AppCode
 
Get AppCode

Extract block parameter

Last modified: 08 March 2021

Language: Objective-C

With the Extract Block Parameter refactoring, you can create a block declaration based on the selected chunk of code within a method. As a result, the created block is passed as a parameter to this method, and all existing usages of this method are changed accordingly.

https://resources.jetbrains.com/help/img/idea/2023.1/ac_extract_block_parameter.png
Gif