update appeared state in IndicatorView when disappear

This commit is contained in:
Manuel Lorenze 2023-01-31 18:13:44 -03:00
parent e021db3028
commit a32b810b1a
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ internal struct IndicatorBarView<SelectionType, Indicator>: View where Selection
appeared = true appeared = true
} }
} }
.onDisappear {
appeared = false
}
} }
.frame(height: internalStyle.indicatorViewHeight) .frame(height: internalStyle.indicatorViewHeight)
} }