Fix issue with toolbar tools switching

This commit is contained in:
Arkadiusz Fal 2022-11-14 19:07:16 +01:00
parent 09aabcf1e5
commit de7eff389f

View File

@ -33,6 +33,7 @@ struct VideoDetailsToolbar: View {
} }
} }
} }
.id(video?.id)
.onChange(of: page) { newValue in .onChange(of: page) { newValue in
activeTool = tools.first { $0.id == newValue.rawValue } activeTool = tools.first { $0.id == newValue.rawValue }
} }