Skip to main content
-2 votes
2 answers
87 views

I've stripped this issue down to an image on a ZStack. The image should be in the lower left corner of the ZStack. When the .rotation for the image is modified, the location changes as if the ...
dkimble's user avatar
  • 59
2 votes
1 answer
235 views

I have been following this tutorial for learning swift programming, and up until the section on Protocols, it has been going flawlessly as per the tutorial. But once I reached the section on ...
Dennis 's user avatar
  • 1,270
1 vote
0 answers
88 views

Xcode - and the iPad and OSX Swift Playgrounds apps - allow one to make an App Playground - a super light SwiftUI boilerplate which runs under Catalyst on the desktop and as an App or in the Swift ...
gjh's user avatar
  • 41
1 vote
0 answers
102 views

I'm learning Swift and I find using Playgrounds helpful to test code snippets. However, when trying to decode JSON, Xcode consistently crashes at the point of decoding. I have tried printing any ...
Daniel's user avatar
  • 123
2 votes
0 answers
105 views

I'm getting iPhone doesn’t support any of app’s architectures. You can set app's Architectures build setting to Standard Architectures to support iPhone. when I try to build/run my app in Xcode and I'...
The-Wolf's user avatar
  • 135
0 votes
0 answers
42 views

I had several library projects that were working in Swift Playgrounds < 4.6 but I get several duplicate compilation errors and previews will not build in Swift Playgrounds > 4.6. Does anyone ...
Kudit's user avatar
  • 4,378
0 votes
1 answer
196 views

I was creating an app for the Apple Swift Student Challenge, and when I go to submit it I realized that it needs to be a swiftpm file. I made my app as an Xcode project, and can't find any way to ...
dan's user avatar
  • 11
0 votes
2 answers
180 views

My simple code written in Swift Playground is very simple and short (based on popular tutorials): import UIKit @preconcurrency import Vision var queue = DispatchQueue.global() extension UIImage { @...
Bartłomiej Semańczyk's user avatar
4 votes
1 answer
789 views

I'm reading the official Swift Programming Language Documentation and writing the code snippet examples in Playgrounds. Currently, I'm on Function Types as Return Types which seemed pretty ...
schifano's user avatar
  • 326
-1 votes
1 answer
153 views

I’m working on an Xcode App Playground project (.swiftpm) and trying to add a .mlmodel file (e.g., Exercises.mlmodel) to it. However, when I add the .mlmodel file to my project, I encounter the ...
MohAliBou's user avatar
  • 265
0 votes
0 answers
19 views

I tried to integrate a ARViewContainer which gets 3D coordinate from a 2D frame into a CoreML playground. Before integrating, both of them works: the ARViewContainter take a CGRect frame as input and ...
Ibroad's user avatar
  • 39
0 votes
1 answer
25 views

NOTE: This is not a "Swift Playground" (app), this is a standalone, Xcode-playground. I have have several existing playgrounds that were created a while ago, you know the story. They live on ...
benc's user avatar
  • 2,119
0 votes
1 answer
451 views

I’m new to Swift and running into an issue with actor isolation in Xcode Playgrounds. When I try to run the following simple code, I get the error message about actor isolation, and I’m not sure why. ...
Archibald's user avatar
  • 485
0 votes
2 answers
452 views

I try to learn something about asynchronous functions and I'm facing a nasty problem with Playground. I have a simple program to download some data, but unfortunately it crashes and all I get are ...
Patrick Bauers's user avatar
-2 votes
1 answer
335 views

If you open a play ground and paste this code, you'll notice that the decoded object is nil. The JSON object [{"transcript":"A person might say, \"Hello\"."}] passes any ...
Saamer's user avatar
  • 5,159

15 30 50 per page
1
2 3 4 5
91