#gary_ios-addresselement
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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?
I sent you a screenshot that shows the Xcode errors from the two files I copied over from your GitHub
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
I created two files in my app in Xcode - one called AddressViewController.swift and one called AddressViewController+Configuration.swift. I then copied your code from GitHub -- https://github.com/stripe/stripe-ios/blob/address-element-private-beta-2/Stripe/AddressViewController.swift#L26
Into these two files
That file you found is UIKit right?
The filename was AddressViewController.swift in GitHub but it does reference UIKit there doesnt seem to be a SwiftUI version on your GitHub
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
Its strange all your other code seems to be written in SwiftUI but not these two files
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 ๐ฆ
So there's no was for me to have an address field via paymentSheet/paymentIntent through SwiftUI?