Skip to content

Commit 5cac0d7

Browse files
committed
🔨 Improved Swift names for getting child wrapper methods
1 parent e968a53 commit 5cac0d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LSFileWrapper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ FOUNDATION_EXPORT const unsigned char LSFileWrapperVersionString[];
122122
*
123123
* @return Optional stored child wrapper as LSFileWrapper.
124124
*/
125-
- (nullable LSFileWrapper *)fileWrapperWithPath:(nonnull NSString *)path;
125+
- (nullable LSFileWrapper *)fileWrapperWithPath:(nonnull NSString *)path NS_SWIFT_NAME(wrapper(with:));
126126

127127
/**
128128
* @brief Finds child wrapper at supplied path in the current LSFileWrapper and its children traversing by path.
@@ -142,11 +142,11 @@ FOUNDATION_EXPORT const unsigned char LSFileWrapperVersionString[];
142142
*
143143
* @warning Should only be called on the LSFileWrapper of type Directory.
144144
*
145-
* @param path Relative path of directory wrapper, whose children we want to get as NSString.
145+
* @param path Relative path of directory wrapper, whose children we want to get as NSString. "/" Can be used to get values for current wrapper.
146146
*
147147
* @return Array of stored child wrappers, each as LSFileWrapper.
148148
*/
149-
- (nonnull NSArray<LSFileWrapper*> *)fileWrappersInPath:(nonnull NSString *)path;
149+
- (nonnull NSArray<LSFileWrapper*> *)fileWrappersInPath:(nonnull NSString *)path NS_SWIFT_NAME(wrappers(in:));
150150

151151
/**
152152
* @brief Adds a new child wrapper with the supplied name to the current LSFileWrapper. If a wrapper is already present with the same name, then the new wrapper will be saved under the returned named to prevent collisions.

0 commit comments

Comments
 (0)