mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
UIStackView: Refactor extension method vc_removeAllSubviews to vc_removeAllArrangedSubviews.
This commit is contained in:
@@ -103,13 +103,13 @@ final class ReactionsMenuView: UIView, Themable, NibLoadable {
|
||||
private func fill(reactionsMenuViewDatas: [ReactionMenuItemViewData]) {
|
||||
self.reactionViewDatas = reactionsMenuViewDatas
|
||||
|
||||
self.reactionsStackView.vc_removeAllSubviews()
|
||||
self.reactionsStackView.vc_removeAllArrangedSubviews()
|
||||
|
||||
let reactionsStackViewCount = self.reactionsStackView.arrangedSubviews.count
|
||||
|
||||
// Remove all menu buttons if reactions count has changed
|
||||
if reactionsStackViewCount != self.reactionViewDatas.count {
|
||||
self.reactionsStackView.vc_removeAllSubviews()
|
||||
self.reactionsStackView.vc_removeAllArrangedSubviews()
|
||||
}
|
||||
|
||||
var index = 0
|
||||
|
||||
Reference in New Issue
Block a user