在Objective C中,我可以用来#pragma mark在符号导航器中标记我的代码部分.由于这是一个C预处理器命令,因此在Swift中不可用.在Swift中是否有替代,或者我是否必须使用丑陋的评论?
#pragma mark
swift
我#pragma mark - Description经常使用Xcode来组织我的方法.但是,我发现有时我需要为我的方法分类和子类别,如下所示:
#pragma mark - Description
公共方法 助手方法 一个方法 其他类型的方法 anotherMethod 私人方法 某种方法 aPrivateMethod
公共方法
私人方法
这可能吗?
xcode objective-c pragma categories
categories ×1
objective-c ×1
pragma ×1
swift ×1
xcode ×1