This commit is contained in:
2025-10-28 10:18:10 +08:00
parent efb04d134e
commit 1deca2ae5b
166 changed files with 17288 additions and 1427 deletions

View File

@@ -0,0 +1,41 @@
#ifdef SHOULD_COMPILE_LOOKIN_SERVER
//
// LookinAttributesGroup.h
// Lookin
//
// Created by Li Kai on 2018/11/19.
// https://lookin.work
//
#import <Foundation/Foundation.h>
#import "LookinAttrIdentifiers.h"
@class LookinAttributesSection;
/**
In Lookin, a LookinAttributesGroup instance will be rendered as a property card.
When isUserCustom is false: two LookinAttributesGroup instances will be regard as equal when they has the same LookinAttrGroupIdentifier.
When isUserCustom is true: two LookinAttributesGroup instances will be regard as equal when they has the same title.
当 isUserCustom 为 false 时:若两个 attrGroup 有相同的 LookinAttrGroupIdentifier则 isEqual: 返回 YES
*/
@interface LookinAttributesGroup : NSObject <NSSecureCoding, NSCopying>
/// 只有在 identifier 为 custom 时,才存在该值
@property(nonatomic, copy) NSString *userCustomTitle;
@property(nonatomic, copy) LookinAttrGroupIdentifier identifier;
@property(nonatomic, copy) NSArray<LookinAttributesSection *> *attrSections;
/// 如果是 custom 则返回 userCustomTitle如果不是 custom 则返回 identifier
- (NSString *)uniqueKey;
- (BOOL)isUserCustom;
@end
#endif /* SHOULD_COMPILE_LOOKIN_SERVER */