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 {
|
.toolbar {
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
ToolbarItem(placement: .topBarTrailing) {
|
||||||
Menu {
|
Menu {
|
||||||
Menu {
|
overflowMenu
|
||||||
Slider(value: $textSize, in: 12...80, step: 1)
|
|
||||||
} label: {
|
|
||||||
Image(systemName: "textformat.size")
|
|
||||||
}
|
|
||||||
} label: {
|
} label: {
|
||||||
Image(systemName: "ellipsis.circle")
|
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 {
|
#Preview {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user