Menu

#648 Newline count after interface and class definitions

Future
closed
nobody
None
obj-c
1
2016-09-25
2015-08-06
Luda
No

How do I add empty line after interface and class definitions and before @end?

Existing code:

@interface MyClass ()
@property (nonatomic, weak) UIView someView;
@property (nonatomic, weak) UIView
anotherView;
@end
@implementation MyClass
- (void)someKindOfFunction
{
some code;
}
- (void)anotherOfFunction
{
some code;
}
@end

Desired code:

@interface MyClass ()

@property (nonatomic, weak) UIView someView;
@property (nonatomic, weak) UIView
anotherView;

@end

@implementation MyClass

  • (void)someKindOfFunction
    {
    some code;
    }

  • (void)anotherOfFunction
    {
    some code;
    }

@end

Discussion

  • Guy Maurel

    Guy Maurel - 2016-09-25
    • status: need-info --> closed
     
  • Guy Maurel

    Guy Maurel - 2016-09-25