[ios, macos] Mark incomplete initializers unavailable
This commit is contained in:
committed by
Minh Nguyễn
parent
43658db28c
commit
0bb46eaf0c
@@ -18,6 +18,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
#pragma mark Initializing a Style Layer
|
||||
|
||||
- (instancetype)init __attribute__((unavailable("Use -initWithIdentifier:source: instead.")));
|
||||
- (instancetype)initWithIdentifier:(NSString *)identifier __attribute__((unavailable("Use -initWithIdentifier:source: instead.")));
|
||||
|
||||
/**
|
||||
Returns a foreground style layer initialized with an identifier and source.
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
#pragma mark Initializing a Style Layer
|
||||
|
||||
- (instancetype)init __attribute__((unavailable("Use -initWithIdentifier: instead.")));
|
||||
|
||||
/**
|
||||
Returns a style layer object initialized with the given identifier.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user