UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Changing button text using an Array

Forums > 100 Days of SwiftUI

Please forgive my lack of understanding about how to achieve what I wish.

I am trying to buid a view that has a few VStack, Hstack and Forms within it. Each of the forms has a list of ten buttons that I would like to be able to get the button text from an array.

The purpose is to check items in and out so that I know whether they are in the correct place or out being used. Firstly is it possible to actually do what I would like? or am I asking something too difficult for my beginning mind?

Once I have found out if it is possible, there will be other actions such as changing a value from one thing to another and possibly adding text so I know where it has gone to. But that is for the future and I don't want t get ahead of myself.

Thank you for all assistance.

2      

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.