Post

Replies

Boosts

Views

Activity

Reply to Getting prompt for accessing key in keychain even when access is allowed for all applications
Creating the identity is one thing, accessing the keychain, priceless. Any access to the keychain will result in being prompted for credentials because it needs to unlock the keychain. This is also dependant on how access to the keychain was set up by the API performing the access. https://developer.apple.com/documentation/security/certificate_key_and_trust_services
Dec ’21
Reply to XCode stuck installing
For some with a prior version installed update deltas can be as small as 400 MB but have the same perception of being stuck. Eventually, it finishes but can assume the update duration has something to do with patching an already codesigned toolset with a foreign set of binaries that most likely will take on the new code signatures. Who knows, maybe Apple can provide information in the UI/UX when the process is either downloading or installing or patching, I'm just postulating!
Dec ’21
Reply to Using Combine-Future to Fetch Server Data
Why not just use async/await? I'm not sure why you're moving the http session time out 30 seconds to 7 seconds. It doesn't make the request any faster just creates problems if the call takes more than 7 seconds to complete. func fetchData(from url: URL) async throws -> [DataModel] { let session = URLSession.shared let (data, _) = try await session.data(from: url) let decoder = JSONDecoder() decoder.keyDecodingStratergy = .converFromSnakeCase // <-- depends on JSON you might not need it return try decoder.decode([DataModel].self, from: data) } View Controller Task { let dataModel = try? await viewModel.fetchData(from: URL(string:"https://api.github.com/repos/ReactiveX/RxSwift/events")!) DispatchQueue.main.async { // give the data model to some other API on the main thread } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’21