Fixing Toolbar

This commit is contained in:
Paddy authored and Patrick Müller committed 2020-12-21 11:24:57 +01:00
1 parent 97bfa5ee8a
commit 13d11c2c2e
2 files changed
+25 -3

No files matched your search

@@ -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>
+7 -3
View File
@@ -25,11 +25,15 @@ struct ContentView: View {
} }
.toolbar { .toolbar {
#if os(iOS) #if os(iOS)
EditButton() ToolbarItem(placement: .bottomBar) {
EditButton()
}
#endif #endif
Button(action: addItem) { ToolbarItem(placement: .bottomBar) {
Label("Add Item", systemImage: "plus") Button(action: addItem) {
Label("Add Item", systemImage: "plus")
}
} }
} }
} }