Post

Replies

Boosts

Views

Activity

SwiftUI - Button Events
Hello all,i am just in thre process of migrating from UIKit to Swift UI. Now I want to create a simple button where I can just call a function in the button pressed and button released event.I searched the whole (alomost...) internet but did not find an answer.Is this not possible with SwiftUI?Just a simple requirement.On button press: Call function AOn button release: Call function BHow can I achieve this?thanks in advance!
5
0
11k
Apr ’20