Category "swift"

Thread 4: Fatal error: 'try!' expression unexpectedly raised an error

I'm trying to learn to make an API call in swiftUI, I'm following the next tutorial https://www.youtube.com/watch?v=1en4JyW3XSI but the code is giving me an err

Getting Localized string not found in wkwebview

Please provide if there any solution

tvOS Table View layout Issues

I am using tableviews in my tvOS application. The screen is divided into 3 table views. The left and right table view is indenting the header, the middle has no

AWS Amplify Flutter: how to create platform endpoint?

Short version of my question: I have a Flutter mobile app that uses AWS Amplify to handle user sign-up and log-in. Now I need to add push notification capabilit

SharingMusicPlayer.swift:12:79: Cannot convert value of type 'AVAudioPlayer.Type' to expected argument type 'AVAudioPlayer'

This is what I have in my singleton: import AVFoundation import Foundation class SharingMusicPlayer { static let sharingMusicPlayer = SharingMusicPlayer(ba

What is "SwiftPM.SPMRepositoryError error 5"?

I've searched Apple's documentation, open source projects, and Google, and I cannot seem to find any information about SwiftPM.SPMRepositoryError error 5. Heck,

Restoring macOS window size after close using SwiftUI WindowsGroup

By default, on a macOS app using SwiftUI the window size is not restored after the window is closed. Is there a way to keep whatever size & position the use

How to create a ZkSync account?

The ZkSync documentation states that a deposit has to be made from an existing Ethereum account to a non-existing ZkSync account counterfactually in order to cr

How to execute a CPU-bound task in background using Swift Concurrency without blocking UI updates?

I have an ObservableObject which can do a CPU-bound heavy work: import Foundation import SwiftUI @MainActor final class Controller: ObservableObject { @Pub

Crash on dyld: Library not loaded: /usr/lib/swift/libswift_Concurrency.dylib running on simulator

I'm implementing a very basic task (download few files from a remote server) on an existing app, to exercise the new Swift Concurrency APIs. The task is done fl

Swift gRPC program not found

Hi i want to use swift gRPC and install in my mac, i already install with homebrew but can't generate the plugins. The error message is protoc-gen-swiftgrpc: pr

Generic delegate response handlers

I've got a class currently something like this class Client { var responseOneDelegate: ResponseOneDelegate? var responseTwoDelegate: ResponseTwoDelegat

Creating a macos windowless menu bar application with SwiftUI

I am looking for a solution to create a macos windowless menu bar application with SwiftUI. I have implement the function ralated to the menu bar, the problem i

Costum TabView renew the views

I have made a pretty simple costum TabView but when i enter the first view's navigation link and switch to other view using TabBar, then come back to the first

Swift - Unexpected rows added to CoreData

I have a CoreData base with 6 rows in it. I na ViewController, the data is displayed in a UITable, when I select a row in the table, the didSelectRow lists 6 ro

Is there a way to get Slack's focused channel name programmatically in macOS/Swift?

Is there a way that macOS/Swift app can retrieve Slack's currently-focused Workspace name and channel name? So, given that Slack app is running, is there any wa

How to enter the amount of shapes in for each identifiable loop SwiftUI

I am beginner in SwiftUI, updating my app and remaking it on SWIFTUI. Here is the screenshot what I had to do... Screenshot I've successfully done actually the

Parse results from JSON to a list dynamically

I do a JSON Request and get some information. func parseJSON(poiData: Data) { let decoder = JSONDecoder() do { let decodedData = try decoder.dec

Finding a SIMD<Float> between 2 points in RealityKit

I have implemented a function, which allows me to find a SIMD3 Vector between two points. private func getMidPosition(_ a: SIMD3<Float>,

MSAL SSO not working for app that built in different framework

We have iOS apps that are built in Xamarin, swift and objective c. We change the authentication of those apps to use Azure AD to easily implement SSO using MSAL