mirror of
https://github.com/Mueller-Patrick/DHBW-Service-App.git
synced 2026-04-28 18:30:09 +00:00
Fixing Toolbar
This commit is contained in:
+18
@@ -10,5 +10,23 @@
|
|||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
<key>SuppressBuildableAutocreation</key>
|
||||||
|
<dict>
|
||||||
|
<key>CD9FAB7C258EC60200D6D0C5</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>CD9FAB92258EC60600D6D0C5</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
<key>CD9FAB9D258EC60600D6D0C5</key>
|
||||||
|
<dict>
|
||||||
|
<key>primary</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -25,14 +25,18 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
.toolbar {
|
.toolbar {
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
|
ToolbarItem(placement: .bottomBar) {
|
||||||
EditButton()
|
EditButton()
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ToolbarItem(placement: .bottomBar) {
|
||||||
Button(action: addItem) {
|
Button(action: addItem) {
|
||||||
Label("Add Item", systemImage: "plus")
|
Label("Add Item", systemImage: "plus")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private func addItem() {
|
private func addItem() {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
|
|||||||
Reference in New Issue
Block a user