NSAttributedString has a size() method which the new AttributedString lacks. How do you get the size of the new AttributedString?
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
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
Is it possible to add sortDescriptor in MagicalRecord request to get case insensitive sorting
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
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
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
When I paste some text, textview height of contentSize is not correct. It returns text height before paste. For example, I expect height value : [contentSize He
I want the LoginViewModel to have a single dependency of LoginViewModelService. LoginViewModelService in itself cannot have an implementation. Its method
I have a view based NSTableView of n rows and 1 column, with a monospaced font. When the user clicks within a row, I need to convert the caret position to a cha
My goal is to: Record a video Show it in a view and play it on a loop Dismiss it from the view Repeat with a new video Problem: Steps 1-3 work. However, the aud
I am new to Xcode and Swift. I want to create a text box for a video game that acts as the dialogue between the game and the user. for example I want the text b
I tried save textview as image with not device scale. I implemented a method to save an image by adding an arbitrary textview according to the UI value. Because
I'm using the newest version on Xcode for my iOS app. I don't want iOS to automatically change the colors in my app when device is in dark mode, because it does
I am a fairly novice developer. I wrote an app for tracking indoor bouldering climbs all in 1 really large file. It was working fine, just hard to maintain. Now
I want to get the list's offset to achieve pagination. So, I wrote like below. ContentView.swift import SwiftUI struct ContentView: View { @State var list =
I have JSON data that looks like this: { // Other attributes here.... "id": "a4s5d6f8ddw", "images": { "selection": [ { "url": "https://
I'm trying out the UICollectionViewCompositionalLayout as a way to build a UI where there are both a vertical and horizontal arrangement of cells. ie. one secti
Working on iPhone, iPad and Mac OS app, which has login screen. I took login View in NavigationView, when I tap on back button the login view will slide as spli
For context, I'm trying to create a mapping from string code points to emojis and need to know if the system supports the emoji: ("1F9AE") -> "🦮" ("1