Added the improved overflow menu item to slideshow view
This commit is contained in:
parent
9bffe349e0
commit
8867a4e1ae
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user