1 Reply
      Latest reply on Oct 4, 2019 7:39 AM by kAppuccinoApps
      yvsong Level 1 Level 1 (0 points)

        How to add 2 navigationBarItems onto a navigation bar, one leading and one trailing?

        • Re: Multiple navigationBarItems
          kAppuccinoApps Level 1 Level 1 (20 points)

          Like so -

          .navigationBarItems(leading: <#T##View#>, trailing: <#T##View#>)
          //Example - 
          .navigationBarItems(
                      leading: Button(action: doSomething){
                         Text("Done")
                      },
                      trailing: Button(action: doSomethingElse){
                          Image("plus")
                          .font(.title)
                          .padding()
                      }
                  )