Skip to content

Commit f90d004

Browse files
authored
Update UIView+SomoSkeleton.m
1 parent 07801b2 commit f90d004

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SomoDemo/SomoDemo/Somo/UIView+SomoSkeleton.m

+3-5
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@ - (void)buildContainer{
6262
}
6363

6464
- (void)buildSkeletonSubViews:(NSArray<SomoView *> *)views{
65-
__weak typeof(self) weakSelf = self;
66-
[views enumerateObjectsUsingBlock:^(SomoView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
67-
__strong typeof(weakSelf) strongSelf = weakSelf;
68-
[strongSelf.somoContainer addSubview:obj];
69-
}];
65+
for (SomoView * view in views) {
66+
[self.somoContainer addSubview:view];
67+
}
7068
}
7169

7270
- (void)endSomo{

0 commit comments

Comments
 (0)