#gary_ios-addresselement

1 messages ยท Page 1 of 1 (latest)

fallen harborBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1285370469603741726

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

zealous walrus
#

gary_ios-addresselement

#

๐Ÿ‘‹ I'm a beginner in terms of iOS development so I'm not great at debugging those things but I'll do my best here!
Can you share a bit more actionable details about what you did/changed and what errors you are referring to?

astral eagle
#

I sent you a screenshot that shows the Xcode errors from the two files I copied over from your GitHub

zealous walrus
#

what does that mean "from the two files I copied over from your Github"?
Sorry I'm going to need really specific details about what you did, what you added, what worked before, etc. You're talking about copying files

#

Are you an experienced developer yourself? Or are you a beginner in SwiftUI like I am? That might explain some of the confusion

astral eagle
#

Into these two files

zealous walrus
#

That file you found is UIKit right?

astral eagle
#

The filename was AddressViewController.swift in GitHub but it does reference UIKit there doesnt seem to be a SwiftUI version on your GitHub

zealous walrus
#

yeah I think that's why you're getting all those errors, you copy-pasted a completely different version.
Trying to figure out if it even works with SwiftUI, give me a few minutes

astral eagle
#

Its strange all your other code seems to be written in SwiftUI but not these two files

zealous walrus
#

Okay I spoke to another engineer on my team and it looks like we don't support AddressElement in SwiftUI at all today unfortunately, I'm sorry ๐Ÿ˜ฆ

astral eagle
#

So there's no was for me to have an address field via paymentSheet/paymentIntent through SwiftUI?