-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
I have this enum:
typedef NS_ENUM(NSUInteger, PushDirection) {
PushDirectionUpwards,
PushDirectionDownwards
};
and this method:
- (void)pushItem:(id <UIDynamicItem>)item withDirection:(PushDirection)direction andSpeed:(PushSpeed)speed
and this method body:
switch (dir) {
}
and upon completing the variable name and pressing Enter I get this:
switch (direction) {
}
case PushDirectionUpwards: {
<#statement#>
break;
}
case PushDirectionDownwards: {
<#statement#>
break;
}
default: {
break;
}
inside the method.
Also, if I have some code after the switch like:
switch (dir) {
}
// example comment
NSInteger exampleCode;
I get this after the expand:
switch (direction) {
}
// example comment
NSInteger exampleCode;
case PushDirectionUpwards: {
<#statement#>
break;
}
case PushDirectionDownwards: {
<#statement#>
break;
}
default: {
break;
}
Metadata
Metadata
Assignees
Labels
No labels