Post not yet marked as solved
14
Views
Would someone be able to point me to Apple documentation elaborating on supported network security for HomeKit? I’m trying to get a definitive answer as to whether WPA3 is supported, as all HomeKit devices currently on my network show “no response” and fail to be adding if my Eero router is running with WPA3 Personal-Transitional mode enabled. I’m not sure if this is on Eero’s side as it doesn’t strictly disallow WPA3 in transitional mode, but any pairing requests with HomeKit devices will time out and not be able to be added to the network.
With the exception of one Mysa Thermostat, this issue replicates along all devices. I’m not sure if this is something the manufacturer has to remedy in a future update, but the thermostats along with other devices will pair in HomeKit with the network in WPA3 mode, but as soon as they are removed and re-added to enable a HomeKit-managed credential they will not successfully pair. I have a camera that will later transition to the assigned credential but as far as I know, support by manufacturers for transitioning to the assigned credential without being removed and added again is also quite limited.
Would appreciate any insight other than links to Reddit etc where it’s just speculation. I’ve managed to find some kind of Apple-issued documentation regarding a host of issues and questions I’ve had with the topic of HomeKit Secure Routers and WPA3 being the only exception.
Post not yet marked as solved
16
Views
I need to change my country and region to Saudi Arabia and reset my account
thank you 🙏
Post not yet marked as solved
15
Views
Hello,
I am new to SwiftUI and Xcode in general. I am currently following along with the IOS development course provided by Stanford, and have run into an issue when creating a new SwiftUI Project. When I create a new SwiftUI project using the "Create a New Project" in the launch screen of Xcode, the generated code provided to me, does not seem to compile and subsequently, the live preview will not work ( I have attached a screenshot below). Since I am new to Xcode and IOS development, I honestly have no idea what could be causing this issue. I have the latest Xcode version (12.5.1) and using Swift 5. Does anyone know how to fix this issue?
Thanks!
Post marked as solved
46
Views
I want to use a Date Picker inside a TableViewCell but it shows some empty field - look the attached image.
What is it and how to remove that empty field?
Post not yet marked as solved
16
Views
Aloha,
I am trying to have the Shortcut app trigger an automation based on my location automatically without having to manually run the automation - i.e. when I arrive at work I want Siri to speak a set text, and when I leave work I'd like Siri to speak a set text and call my GF automatically. So far I haven't been able to find a way to do this or a workaround.
Any suggestions or resources for a workaround?
I'd really appreciate it!
Orion R
Post not yet marked as solved
22
Views
Hello, I am trying to download Adobe Illustrator and it says I need to update to 10.14. I Currently have 10.12, how can I upgrade to 10.14?
When I check for updates, I cannot update anything.
Post not yet marked as solved
23
Views
We were encourage by Frameworks Engineer reply and Apple's Official Docs and started to use this approach in our App. But next we detected that App has leaked objects when we do Memory Graph Check in UITests.
Removing of .accessibilityElement(children: .contain) solves the issue but we still want to use container identifiers in our UITests.
Here is a sample project to illustrated and reproduce the issue: https://github.com/yuri-qualtie/MemoryLeaks. All the details and steps are described in Readme
We need help with fix for .accessibilityElement(children: .contain) but any workaround is welcomed
Post not yet marked as solved
18
Views
I work for a credit card company in Costa Rica and would like to get our card accepted in Apple Wallet. How can we go about that? Is there any documentation?
Best,
Daniel
Post not yet marked as solved
14
Views
I'm having an issue where I can only use ReplayKit successfully once, then I have to restart the app to get it to work again.
The first time I start recording, then stop. It works.
The second time one of two things happen...
I get a black screen in my preview
I get the following error message in stopRecording().
Failed due to failure to process the first sample buffer
After that, if I try to call startRecording again I get the following error.
Recording failed to start
Then the above error repeats until I restart my app.
One other thing to note, the only time I get the alert to ask for approval to record is the first time I use ReplayKit. The alert doesn't show again until the first time after the app is restarted.
Here are my functions I'm using.
func didStartRecording() {
self.startRecording()
}
@objc func startRecording() {
let recorder = RPScreenRecorder.shared()
recorder.startRecording { [unowned self] (error) in
if let unwrappedError = error {
log.error("Error trying to record using ReplayKit: \(unwrappedError.localizedDescription)")
return
}
recordingView.backgroundColor = UIColor.red
self.view.addSubview(recordingView)
recordingView.snp.makeConstraints { make in
make.top.left.right.equalToSuperview()
make.height.equalTo(50)
}
let recordingLabel = InstrLabel()
recordingLabel.text = "Recording....Tap to stop"
recordingLabel.textColor = .white
recordingView.addSubview(recordingLabel)
recordingLabel.snp.makeConstraints { make in
make.width.height.equalToSuperview().multipliedBy(0.9)
make.centerX.centerY.equalToSuperview()
}
let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(stopRecording))
recordingLabel.isUserInteractionEnabled = true
recordingLabel.addGestureRecognizer(tapGestureRecognizer)
}
}
@objc func stopRecording() {
let recorder = RPScreenRecorder.shared()
recorder.stopRecording { [unowned self] (preview, error) in
DispatchQueue.main.async {
recordingView.removeFromSuperview()
}
if let error = error {
log.error("Error with stopping the recording: \(error.localizedDescription)")
}
if let unwrappedPreview = preview {
unwrappedPreview.previewControllerDelegate = self
self.pushViewController(unwrappedPreview, animated: true)
}
}
}
func previewControllerDidFinish(_ previewController: RPPreviewViewController) {
self.popViewController(animated: true)
}
I'm using iPad 5th Generation 14.7.1
Is there anyway to reset the replaykit successfully so I can do another recording immediately after without restarting the app? I've seen a few other threads with the "black screen" but none of them had any solutions that I could find.
Post not yet marked as solved
31
Views
I am trying to present a decimal variable containing the value of 66.67. So I am trying to do:
Text("\(myVariable, specifier: "%.2f")")
//Instance method 'appendinterpolation(_:specifier) requires that Decimal conform to _formtSpecifiable
Text("\(myVariable, specifier: "%.2f")" as String)
//I receive extra argument specifier in call
How can I fix it ?
Thx
Post not yet marked as solved
28
Views
struct MyView: View {
var body: some View {
//this value is coming from a JSON
var myDate = "3000-01-01T08:00:00-08:00"
//Here I'm calling my function formatDate, passing my myDate parameter:
Text(formatDate(dateString: myDate))
}
}
func formatDate(dateString: String) -> Date {
//first I dont know why my parameter gets here nil
let dateFormatter = ISO8601DateFormatter()
//at the dateFormatter, doesnt matter the options I set, the return is always the same.
dateFormatter.formatOptions = [
.withFullDate,
.withFullTime,
]
let finalDate = dateFormatter.date(from: dateString)!
return finalDate
}
I just need the get the date string, convert it to the format MM dd, yyyy - hh:mm
How can I do it ?
Thank you
Post not yet marked as solved
10
Views
I would like to build mDNSResponder for Windows 10 so that we can distribute it with our Windows software. It's my understanding that the source code should be available here:
https://opensource.apple.com/tarballs/mDNSResponder/
I've download the majority of the tarballs and found that none of the recent releases include the mDNSWindows" directory, which is referenced by the included Visual Studio solution. I've emailed opensource @ apple.com
multiple times asking how I can obtain the missing sources but haven't received a response.
Does anyone know why the Windows sources are missing from the tarballs or how to obtain them?
Thanks,
Michael
Post not yet marked as solved
19
Views
Hi Guys,
i recently have lost my PUBGM account that i link to Game Center, have check Game Center ID and Apple ID but still can’t retrieve my account. Previously is ok when i have switch from IP6 to IP12. After the new IOS update i lost my account is there any other way to get it back?
Post not yet marked as solved
22
Views
I have a streaming video app, it has a monthly subscription that is an iap. According to almost every article I can find I am required to collect tax on the customer if they are in Chicago. How do I collect the tax? Is Apple collecting it and paying the city of Chicago? Apple provides me zero user data, so I am unable to even know if the user is in Chicago, unless I manually collect city and state from the user.
Post not yet marked as solved
23
Views
I was recently looking at Apple's sample code for a ReferenceFileDocument based SwiftUI document app: Building a Document-Based App with SwiftUI
The two main data types, Checklist and ChecklistItem, are defined as structs. There is also a helper struct BindingCollection that converts a binding to a collection of elements into a collection of bindings to the individual elements. The app relies on bindings to these structs.
However, in some ways, isn't a binding to a struct circumnavigating value-type semantics? Any piece of code that is passed the Binding can alter the value, rather than a copy of the value? How does SwiftUI know that the struct has been updated without a publisher?
Last question: if I'd been writing this app myself, I would have made Checklist a class, conforming to ObservableObject publishing its items property. This would have avoided the helper function, and use of bindings. What are the benefits of the struct / binding approach in the example code?