Skip to content

Commit

Permalink
Avoid reference cycle caused by empty state configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mathebox committed Oct 26, 2021
1 parent 2b4e2a7 commit 5bcee28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOS/Extensions/EmptyState/EmptyState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension EmptyStateProtocol {
}
set {
if let newValue = newValue {
objc_setAssociatedObject(self, &AssociatedKeys.emptyStateDelegate, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
objc_setAssociatedObject(self, &AssociatedKeys.emptyStateDelegate, newValue, .OBJC_ASSOCIATION_ASSIGN)
}
}
}
Expand All @@ -78,7 +78,7 @@ extension EmptyStateProtocol {
}
set {
if let newValue = newValue {
objc_setAssociatedObject(self, &AssociatedKeys.emptyStateDataSource, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
objc_setAssociatedObject(self, &AssociatedKeys.emptyStateDataSource, newValue, .OBJC_ASSOCIATION_ASSIGN)
self.reloadEmptyState()
}
}
Expand Down

0 comments on commit 5bcee28

Please sign in to comment.