Category "swift"

SwiftUI App crashes after second continuous open

I have a working SwiftUI app with a start animation that appears to sometimes cause it to crash - this happens only when the user quits the app completely right

swift error: Value of type _ has no member _

how do I fix this error? xcodes-13 This Is my code for working with api: struct everything: Codable{ let topic: String let content: String

Find screen resolution in Swift [duplicate]

I am writing an iOS game in Swift using Spritekit and want to find the screen resolution to properly place my sprites. I found multiple ways o

macOS app crash on WKWebView() with EXC_BREAKPOINT on M1

Our app works properly when debugging on Intel machines but it crashes when we run on MacBook Pro with M1. App crash when we try to init WKWebView setUpWebView

I got this error in swift storyboard keyNotFound(CodingKeys(stringValue: "topic", intValue: nil), Swift.DecodingError

Error: keyNotFound(CodingKeys(stringValue: "topic", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key

extract image from stamp pdf annotation on PDFViewAnnotationHit notification

I want to know how I can extract image from Stamp Pdf annotation when PDFViewAnnotationHit notification triggered. We have pdf notification when we touch pdf an

Convert current time to local time in date format(Without converting it to string) in swift

I want to convert current time(in UTC) to my local time zone. But I don't want it in string I want it in date format itself. I have written following code: let

How to use Button SwiftUI correctly?

There is a code that, by pressing the "Sign Up" button at the bottom of the screen, should open another window. But for some reason, when you click on the butto

WkWebview inside uiScrollview

I was wondering if you can help me please. I have a wkWebview that has horizontal paging content. Outside of that I have a scroll view that also has horizontal

SwiftUI: trigger redraw when NSManagedObject (not part of fetch request) bool property changes?

I have the following @SectionedFetchRequest installed on my SwiftUI view: @SectionedFetchRequest(entity: Car.entity(), sectionIdentifier:

How To Cycle Through Images on Button Click

So I have spent an embarrassing amount of time on this and I come to ask you to save my sanity. I am building an app to conduct evaluations on my blind and visu

Library not found for -lDJIWidget

I am attempting to run the sample developer dji application for the iOS platform via Xcode version 13.2.1. Upon building the application for the ObjectiveC and

One working ScrollView example and one refusing example

This is a working example of a ScrollView: var body: some View { ScrollViewReader { proxy in VStack { Button("Warp to line 10 o

How to get the size of the new swift AttributedString?

NSAttributedString has a size() method which the new AttributedString lacks. How do you get the size of the new AttributedString?

Error code -1009 and "Operation not supported by device" when using URL(...) on watchOS

Let's say I have the following code: guard let URLData = URL(string: "https://www.bing.com") else { print("Unable to access \(URLString)") return } Whe

Why can't I create an "In-App Purchase Content" target in XCode?

I am adding an in-app purchase to my iOS application that unlocks a feature to render images at a higher resolution. To achieve this, I would like to leverage A

Case Insensitive Compare with Magical Record library(Core Data) and Swift

Is it possible to add sortDescriptor in MagicalRecord request to get case insensitive sorting

continuous center of user with Mapkit

Good afternoon, I am having trouble displaying a map where it only centers around the user and will stay on the user with movement. My error is in my view file

continuous center of user with Mapkit

Good afternoon, I am having trouble displaying a map where it only centers around the user and will stay on the user with movement. My error is in my view file

Xcode failed to log metrics boringssl

I'm building a simple Xcode project to help me calculate taxes. I'm requesting an xml url but getting the error: [boringssl] boringssl_metrics_log_metric_block