Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swiftui run action before navigationlink inside on button

NavigationLink(destination: TradeView(trade: trade)) {
	Text("Trade View Link")
}.simultaneousGesture(TapGesture().onEnded{
	print("Hello world!")
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Swiftui #run #action #navigationlink #button
ADD COMMENT
Topic
Name
4+3 =