Added the improved overflow menu item to slideshow view

This commit is contained in:
breadone 2024-06-23 17:13:45 +12:00
parent 9bffe349e0
commit 8867a4e1ae
No known key found for this signature in database

View File

@ -31,11 +31,7 @@ struct ProjectSlideshowView: View {
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
Menu {
Menu {
Slider(value: $textSize, in: 12...80, step: 1)
} label: {
Image(systemName: "textformat.size")
}
overflowMenu
} label: {
Image(systemName: "ellipsis.circle")
}
@ -48,6 +44,14 @@ struct ProjectSlideshowView: View {
}
}
}
var overflowMenu: some View {
VStack {
Menu { Stepper("\(textSize.formatted())", value: $textSize, in: 12...150) } label: {
Label("Text Size", systemImage: "textformat.size")
}
}
}
}
#Preview {