Swift Playgrounds

RSS for tag

Learn and explore coding in Swift through interactive learning experiences on the Swift Playgrounds app for iPadOS and macOS.

Swift Playgrounds Documentation

Posts under Swift Playgrounds tag

279 Posts
Sort by:
Post marked as solved
1 Replies
292 Views
I’m trying to develop my first app my Vision is a new creative app for sharing ideas, inventions, artwork, and more in a safe inviting app. Im stuck trying to develop a feature to allow a user to create a post. For example allowing them to upload a file, a photo, a video, or just text. any and all help is appreciated thx!
Posted
by
Post not yet marked as solved
2 Replies
4k Views
objc[2247]: Class _PathPoint is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x11a0e8a78) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x130fb08b0). One of the two will be used. Which one is undefined. objc[2247]: Class _PointQueue is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x11a0e8a50) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x130fb08d8). One of the two will be used. Which one is undefined.
Posted
by
Post not yet marked as solved
1 Replies
233 Views
Said that I program from an iPad, how do I add an image to my code in Swift Playgrounds? Thanks to whoever helps me 👍
Posted
by
Post not yet marked as solved
1 Replies
290 Views
Swift Playgrounds Shapes has code I would like to use in Xcode, but it doesn't work. I have imported UIKit and SpriteKit. How do you create a circle and set it in a scene? I'd also like to modify its isDraggable Boolean value, and add the event handlers: .touch and .touchUp Thanks!
Posted
by
Post not yet marked as solved
3 Replies
491 Views
When I run an Xcode playground and use the pow() function, it's ignoring the exponent and returning only the base. If I run this code in a swift playground on an iPad or execute it in the REPL, I get the expected result (9). But in Xcode, it just fails.
Posted
by
Post not yet marked as solved
0 Replies
254 Views
I’m trying to develop a new creative app where app users can upload files, videos, or images. I'm stuck trying to code in swift allowing my app users to upload a video and can be shows in feeds to everyone and visible on their profile in the app. Examples YouTube: allows any user create a channel and upload videos and earn subscribers and receive comments and likes Facebook: allows users to accept friend request and post photos with text to their profile and shows on feeds to everyone, just their friends, or certain people. My Request What I’m asking is how can I code in something like this into my app? Im really passionate about learning how to code and want to learn and grow as a developer, so any and all help is appreciated. Please note I’m a slow learner so please provide examples if possible, Thx!
Posted
by
Post not yet marked as solved
0 Replies
304 Views
Im new to the app development industry I only know swift so I’m restricted to how I can develop my app. I want to develop an app with Swift Playgrounds a feature coming late 2021. For the sake of learning and being the best developer I can be I want to know how I can allow users of my app to post stuff like images, files, or videos to a private or public feed. examples like twitter, or instagram to name a couple. I’ve had 0 luck finding help, I’m a slow learner and a lot of the website I go to done have a-lot of detail and are hard to figure out what it’s trying to teach me.
Posted
by
Post marked as solved
1 Replies
1.5k Views
Sorry if this has been asked but when I open xcode 13 there is no option to open a playground. There is also no option under along the top. Am I being dumb or just missing something?
Posted
by
Post not yet marked as solved
0 Replies
411 Views
am using Natural Language framework on a Swift Playground XCode version is 13.0 (13A233) and sometimes at random, it stops processing the string and get these two errors: Class _PathPoint is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x11f3eca78) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x131eb48b0). One of the two will be used. Which one is undefined. objc[15209]: Class _PointQueue is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x11f3eca50) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x131eb48d8). One of the two will be used. Which one is undefined. It seems that something inside NLTagger is confused about these two classes but I cannot determine what is causing it, as sometimes it works fine and other times it shows these errors and the string is left without fully processing. Has anyone found this issue before and any potential solution? The playground seems to keep going, so it is not an error forwarded to my code, but the NLP process is not affecting all the string when it happens.
Posted
by
Post not yet marked as solved
0 Replies
188 Views
Is there a way to continue with the same codes from Playgrounds to Xcode, especially those visual block of elements e.g. world.place ? Any library that I can import to enable the use of those blocks from Playgrounds would be welcome.
Posted
by
Post marked as solved
3 Replies
232 Views
Hi I wanted to know more about swift playground I am a high school student in NYC and I wanted instruction on how to use swift playground app on my iPad I did the app for the first time and I don’t know how to use it
Posted
by
Post not yet marked as solved
6 Replies
567 Views
Switft Playgrounds 4 was announced with the release of iPadOS 15 in the summer to be released later this year. We are a few days away from December….is it still going to be released this year or has it been scrapped and is not coming out?
Posted
by
Post not yet marked as solved
1 Replies
499 Views
I don't have access to the source code but only the .ipa file and I'm to confirm as the QA to the project the swift version used to develop the .ipa file, how do I? I can get the iOS version using this command on the terminal. plutil -p Payload/MyData.app/Info.plist | grep DTSDKName I have read through the Info.plist file and can't find any unique identifier that could show the app is built with Swift 5.
Posted
by