Swift Playground

RSS for tag

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

Swift Playground Documentation

Posts under Swift Playground subtopic

Post

Replies

Boosts

Views

Activity

Cannot infer contextual base in reference to member 'trailingIcon'
I am a beginner and i am working on the Scrumdinger tutorial . this message keeps popping up "Cannot infer contextual base in reference to member 'trailingIcon'" I do not know how to fix it. Here is my code import SwiftUI struct CardView: View {   let scrum: DailyScrum   var body: some View {     VStack(alignment: .leading){       Text(scrum.title)         .font(.headline)         .accessibilityAddTraits(.isHeader)               Spacer()       HStack {         Label("(scrum.attendees.count)", systemImage: "person.3")           .accessibilityLabel("(scrum.attendees.count) attendees")         Spacer()         Label("(scrum.lengthInMinutes)", systemImage: "clock")           .accessibilityLabel("(scrum.lengthInMinutes) minute meeting")           .labelStyle(.trailingIcon)       }       .font(.caption)     }     .padding()     .foregroundColor(scrum.theme.accentColor)   } } struct CardView_Previews: PreviewProvider {   static var scrum = DailyScrum.sampleData[0]   static var previews: some View {     CardView(scrum: scrum)       .background(scrum.theme.mainColor)       .previewLayout(.fixed(width: 400, height: 60))   } } Any ideas?
5
0
6.4k
Feb ’23
Trying to Print from a Playground within the Swift Playgrounds App on the iPad
I select the 3 dots (top right) --> Create a PDF --> Print --> Print Options -->Print, and nothing happens, the dialog box will close as it is printing, but no print out. I have to Create a PDF --> Save to Files, then Open the Files app and print the PDF just saved from there, not very efficient. Any idea what I might be doing wrong or is it a bug?
0
0
1.1k
Jan ’23
How to write a method to sort out black and red cards Newbie to Swift
import Cocoa import Darwin // STRUCTURES & ENUMS page 19/525 // DATE CHANGES //*********************************************************** // 17Jan2023 We have 2 enumns and one structure here // 1st enum rank //*********************************************************** enum Rank: Int { case Ace = 1 case Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten case Jack,Queen,King func simpleDescription () -> String { switch self { case .Ace: return "ace" case .Jack: return " jack" case .Queen: return " queen" case .King: return " king" default: return String( self.rawValue) } } }// enum close let ace = Rank.Ace let aceRawValue = ace.rawValue let king = Rank.King let kingRawValue = king.rawValue print(kingRawValue) // king raw value should be 13 ok // page 20 4 suits in deck of cards enum Suit { case Spades,Hearts, Diamonds,Clubs func simpleDescription()-> String { switch self { case .Spades: return "spades" case .Hearts: return "hearts" case .Diamonds: return "diamonds" case .Clubs: return "clubs" } } }// enum for suit close let hearts = Suit.Hearts let heartDescription = hearts.simpleDescription() print(heartDescription) // page 21/525 // Use structures to support enums struct Card { var rank: Rank var suit: Suit var black1 = Suit.Spades var black2 = Suit.Clubs var red1 = Suit.Hearts var red2 = Suit.Diamonds func simpleDescription()->String{ return"The rank is \(rank.simpleDescription()) of \(suit.simpleDescription())" } }// struc closingbrace let threeOfSpades = Card(rank: .Three,suit:.Spades) let threeOfSpadesDescription = threeOfSpades.simpleDescription() print(threeOfSpadesDescription) // print the variable // EXPT develop a method to support for color : // red hearts and diamonds. // black spades and clubs
4
0
1.1k
Jan ’23
Playground liveView fails
Hi ! I am trying to run some async code before setting up the playground liveView, but I cannot figure out why it keeps crashing. I started up with a task I was waiting on the result before configuring the liveView, and now I am having all async work in a dedicated function, which seems to work fine : imageView has the correct width, and the line playground preview shows the image I am fetching online ! In both cases, I get the same result. Would that error be obvious to anyone ? import Foundation import UIKit import PlaygroundSupport let image = try await getImage() let imageView = UIImageView(image:image) var liveView: UIView = UIView(frame: CGRect(x: 0, y: 0, width: 1050, height: 1050)) liveView.addSubview(imageView) print("before set liveView. imageView.width = \(imageView.frame.width)") PlaygroundPage.current.setLiveView(liveView) // crash here the getImage prototype being : public func getImage() async throws -> UIImage? And the console output : before set liveView. imageView.width = 960.0 Playground execution failed: error: execution stopped with unexpected state. error: Execution was interrupted, reason: shared-library-event. The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.
0
0
1.1k
Jan ’23
WWDC22 Playgrounds prototyping Demo already broken
Hi there, Well, here I am again, bouncing off the churn that is Swift. I thought I'd test whether Swift Playgrounds might actually be a decent prototyping tool, went to a Demo titled Build your first Playgrounds app and it is already obsoleted by changes to Swift. So, how do we reconcile ourselves to a coding language that changes to rapidly that code becomes obsolete in a matter of months? Is there going to be a list of API's et al that can be considered to be stable? So, the presenter. uses: "    let teas: OrderedSet = ["Byte's Oolong", "Golden Tippy Assam", "English Breakfast", "Matt P's Tea Party", "Darjeeling", "Genmaicha", "Jasmine Green", "Vanilla Rooibos"]" and fixes the error by using: "import Collections" That import no longer exists, and the OrderedSet error she fixed using that Module flags the same error. Can we help me to understand why this simple process of making a list is so challenging for me, the newbie. Are there plans to stabilize Swift, or support Legacy code in the future? That's bearing in mind that I've written some pretty impressive tools in Tk/tcl, C, Pascal. Thanks. Harley
2
0
1k
Jan ’23
Swift Playground - Round up the switches - character won't move
Trying to find an easy solution for the "Round up the switches" level. I think the while-loop is bugged - I have no explanation for the problem... var gemcount = 0 var switchcount = 0 func movement() {     moveForward()     if isBlocked && !isBlockedRight{         turnRight()     }     if isBlocked && !isBlockedLeft{         turnLeft()     } } func collect() {     if isOnGem {         collectGem()         gemcount = gemcount + 1}     } func toggle() {     if isOnClosedSwitch && switchcount != gemcount {         toggleSwitch()         switchcount = switchcount + 1} } while switchcount < gemcount {     movement()     collect()     toggle() }
6
0
1.9k
Jan ’23
Unable to complete Swift Playgrounds exercise "Use Model Data In a View"
I'm trying to proceed through Swift Playgrounds > Keep Going With Apps > Sharing Data Between Values > Use Model Data In a View > but "Next" is grayed out: I've tried following the instructions and opening the ResizableFont file, but it still won't let me proceed. I also tried opening this Playgrounds file on another Mac and the same issue happened.
5
1
974
Jan ’23
Adding a tutorial file results in an "explicitly declare as resources" error
Following the instructions in the Create engaging content for Swift Playgrounds video I am adding a tutorial (Walkthrough.tutorial) file to my app. But, I get an error when I open the app on my iPad because of the non-swift files. I am using Xcode 14.1. The app was created using: File>New>Project>Swift Playgrounds App
0
0
790
Nov ’22
Playgrounds crashes all the time, what do I do?
IPad Playgrounds has started to routinely crash on me. It started crashing while I was trying to work with protocol meta types, so I thought something about that feature was doing it, but I’ve moved onto other projects, or even brand new ones and Playgrounds keeps crashing. It seems to have something to do with comments. If I’m just editing code it’ll keep going and the preview will update, but if I start to edit a comment I’ll see the compiler begin to spin and it crashes. I can post a video later if needed. I’ve rebooted the device and it’s still crashing. What do I do? If I delete and reinstall Playgrounds will all my projects stay there or do I need to back them up somehow?
7
0
4.1k
Nov ’22
Having an issue in Playgrounds - Object is not appearing
Greetings, I'm just learning Swift language by Playgrounds and some Udemy educations. I have a problem with Coding 2 - Connect and Solve episode. I supposed to build 3 - 2 - 3 blocks to three spots on 2nd column BUT blocks are acting like ghosting, it appears like for 0.5 seconds and disappear again. Then only change that I made is updating MacOS system with the lastest patch. Open to any ideas about the issue. Tnank you!
2
0
788
Nov ’22
Swift Playground - Font Bug
After the last update the code editor fonts is blurry while the rest of the menus remains correct. There is a fix or do i need to wait the next update? Is this the right place to submiss bug for the Swift Playgrounds developers? The bug is on a Mac Mini M1 running Ventura 13.0.1 (the last version as today) I checked Swift Playgrounds on a iMac M1 (8cpu, 8gpu) and a Macbook Pro 2017 (2 thunderbolts) both running Ventura 13.0.1 and there the code editor font is fine. I have also tried uninstalling the app and reinstalling it varius time even using AppCleaner but didn't work.
1
0
795
Nov ’22
Swift Playgrounds - Old version
Hi there, I'm not a developer yet, I'm starting the Apple Foundation Program in a couple of months, and I have to practice a bit on Swift Playgrounds beforehand. The problem is, I have an old iMac (late 2013) running on Catalina 10.15.7, and the app only work from 11.5 and above. My Mac isn't compatible with Big Sur, so I can't upgrade it anymore, and I don't own an iPad. Is it possible to find somewhere an old version of the app ? I think 3.2 is the one I need. Thank you for your help.
3
1
5.6k
Nov ’22
Playgrounds 4.1 always crashes a few seconds after launch (macOS 12.6.1)
Playgrounds 4.1 always crashes a few seconds after launch without even showing a window. When I switch to my Admin user, it doesn't crash. I can run simple Swift code there. My daily user account (where it crashes) doesn't have admin rights. rMBP late 2016 (won't get macOS 13) with macOS 12.6.1 (fresh installation 2 months ago without Migration Assistant, so no old prefs and stuff). Playgrounds 4.2 requires macOS 13. I deleted all playgrounds files from iCloud. Still crashes... Any prefs which I could delete? Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libswiftCore.dylib 0x7ff819b9c245 assertionFailure(:_:file:line:flags:) + 421 1 Playgrounds 0x10507e765 0x104dad000 + 2955109 2 Playgrounds 0x105038712 0x104dad000 + 2668306 3 Playgrounds 0x105036fc5 0x104dad000 + 2662341 4 Playgrounds 0x104fcfd40 0x104dad000 + 2239808 5 Playgrounds 0x104fcd860 0x104dad000 + 2230368 6 Playgrounds 0x104f9ba1a 0x104dad000 + 2026010 7 Playgrounds 0x104f97cad 0x104dad000 + 2010285 8 UIKitCore 0x7ff91a795482 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272 9 UIKitCore 0x7ff91a794646 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4125 10 UIKitCore 0x7ff91a7920a3 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1568 11 UIKitCore 0x7ff91a7919d1 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 179 12 UIKitCore 0x7ff91b4c8359 -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 59 13 UIKitCore 0x7ff91a76edd8 -[UIApplication _run] + 946 14 UIKitCore 0x7ff91a763d00 UIApplicationMain + 133 15 Playgrounds 0x104db255b 0x104dad000 + 21851 16 dyld 0x105d5c52e start + 462
1
0
1.2k
Nov ’22
Cannot infer contextual base in reference to member 'trailingIcon'
I am a beginner and i am working on the Scrumdinger tutorial . this message keeps popping up "Cannot infer contextual base in reference to member 'trailingIcon'" I do not know how to fix it. Here is my code import SwiftUI struct CardView: View {   let scrum: DailyScrum   var body: some View {     VStack(alignment: .leading){       Text(scrum.title)         .font(.headline)         .accessibilityAddTraits(.isHeader)               Spacer()       HStack {         Label("(scrum.attendees.count)", systemImage: "person.3")           .accessibilityLabel("(scrum.attendees.count) attendees")         Spacer()         Label("(scrum.lengthInMinutes)", systemImage: "clock")           .accessibilityLabel("(scrum.lengthInMinutes) minute meeting")           .labelStyle(.trailingIcon)       }       .font(.caption)     }     .padding()     .foregroundColor(scrum.theme.accentColor)   } } struct CardView_Previews: PreviewProvider {   static var scrum = DailyScrum.sampleData[0]   static var previews: some View {     CardView(scrum: scrum)       .background(scrum.theme.mainColor)       .previewLayout(.fixed(width: 400, height: 60))   } } Any ideas?
Replies
5
Boosts
0
Views
6.4k
Activity
Feb ’23
Swift Playgrounds 4.2: No contextual help available while using the App Template
While using the Playground template, I get the contextual Help with the code, if I do Help on a variable it will tell me the Type. Then if I am working on the App template, instead of the Playground, there is not Help available, I will always get the message "No Documentation Available", why?
Replies
1
Boosts
0
Views
1.5k
Activity
Jan ’23
Trying to Print from a Playground within the Swift Playgrounds App on the iPad
I select the 3 dots (top right) --> Create a PDF --> Print --> Print Options -->Print, and nothing happens, the dialog box will close as it is printing, but no print out. I have to Create a PDF --> Save to Files, then Open the Files app and print the PDF just saved from there, not very efficient. Any idea what I might be doing wrong or is it a bug?
Replies
0
Boosts
0
Views
1.1k
Activity
Jan ’23
How to write a method to sort out black and red cards Newbie to Swift
import Cocoa import Darwin // STRUCTURES & ENUMS page 19/525 // DATE CHANGES //*********************************************************** // 17Jan2023 We have 2 enumns and one structure here // 1st enum rank //*********************************************************** enum Rank: Int { case Ace = 1 case Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten case Jack,Queen,King func simpleDescription () -> String { switch self { case .Ace: return "ace" case .Jack: return " jack" case .Queen: return " queen" case .King: return " king" default: return String( self.rawValue) } } }// enum close let ace = Rank.Ace let aceRawValue = ace.rawValue let king = Rank.King let kingRawValue = king.rawValue print(kingRawValue) // king raw value should be 13 ok // page 20 4 suits in deck of cards enum Suit { case Spades,Hearts, Diamonds,Clubs func simpleDescription()-> String { switch self { case .Spades: return "spades" case .Hearts: return "hearts" case .Diamonds: return "diamonds" case .Clubs: return "clubs" } } }// enum for suit close let hearts = Suit.Hearts let heartDescription = hearts.simpleDescription() print(heartDescription) // page 21/525 // Use structures to support enums struct Card { var rank: Rank var suit: Suit var black1 = Suit.Spades var black2 = Suit.Clubs var red1 = Suit.Hearts var red2 = Suit.Diamonds func simpleDescription()->String{ return"The rank is \(rank.simpleDescription()) of \(suit.simpleDescription())" } }// struc closingbrace let threeOfSpades = Card(rank: .Three,suit:.Spades) let threeOfSpadesDescription = threeOfSpades.simpleDescription() print(threeOfSpadesDescription) // print the variable // EXPT develop a method to support for color : // red hearts and diamonds. // black spades and clubs
Replies
4
Boosts
0
Views
1.1k
Activity
Jan ’23
Playground liveView fails
Hi ! I am trying to run some async code before setting up the playground liveView, but I cannot figure out why it keeps crashing. I started up with a task I was waiting on the result before configuring the liveView, and now I am having all async work in a dedicated function, which seems to work fine : imageView has the correct width, and the line playground preview shows the image I am fetching online ! In both cases, I get the same result. Would that error be obvious to anyone ? import Foundation import UIKit import PlaygroundSupport let image = try await getImage() let imageView = UIImageView(image:image) var liveView: UIView = UIView(frame: CGRect(x: 0, y: 0, width: 1050, height: 1050)) liveView.addSubview(imageView) print("before set liveView. imageView.width = \(imageView.frame.width)") PlaygroundPage.current.setLiveView(liveView) // crash here the getImage prototype being : public func getImage() async throws -> UIImage? And the console output : before set liveView. imageView.width = 960.0 Playground execution failed: error: execution stopped with unexpected state. error: Execution was interrupted, reason: shared-library-event. The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.
Replies
0
Boosts
0
Views
1.1k
Activity
Jan ’23
WWDC22 Playgrounds prototyping Demo already broken
Hi there, Well, here I am again, bouncing off the churn that is Swift. I thought I'd test whether Swift Playgrounds might actually be a decent prototyping tool, went to a Demo titled Build your first Playgrounds app and it is already obsoleted by changes to Swift. So, how do we reconcile ourselves to a coding language that changes to rapidly that code becomes obsolete in a matter of months? Is there going to be a list of API's et al that can be considered to be stable? So, the presenter. uses: "    let teas: OrderedSet = ["Byte's Oolong", "Golden Tippy Assam", "English Breakfast", "Matt P's Tea Party", "Darjeeling", "Genmaicha", "Jasmine Green", "Vanilla Rooibos"]" and fixes the error by using: "import Collections" That import no longer exists, and the OrderedSet error she fixed using that Module flags the same error. Can we help me to understand why this simple process of making a list is so challenging for me, the newbie. Are there plans to stabilize Swift, or support Legacy code in the future? That's bearing in mind that I've written some pretty impressive tools in Tk/tcl, C, Pascal. Thanks. Harley
Replies
2
Boosts
0
Views
1k
Activity
Jan ’23
Swift Playground - Round up the switches - character won't move
Trying to find an easy solution for the "Round up the switches" level. I think the while-loop is bugged - I have no explanation for the problem... var gemcount = 0 var switchcount = 0 func movement() {     moveForward()     if isBlocked && !isBlockedRight{         turnRight()     }     if isBlocked && !isBlockedLeft{         turnLeft()     } } func collect() {     if isOnGem {         collectGem()         gemcount = gemcount + 1}     } func toggle() {     if isOnClosedSwitch && switchcount != gemcount {         toggleSwitch()         switchcount = switchcount + 1} } while switchcount < gemcount {     movement()     collect()     toggle() }
Replies
6
Boosts
0
Views
1.9k
Activity
Jan ’23
Unable to complete Swift Playgrounds exercise "Use Model Data In a View"
I'm trying to proceed through Swift Playgrounds > Keep Going With Apps > Sharing Data Between Values > Use Model Data In a View > but "Next" is grayed out: I've tried following the instructions and opening the ResizableFont file, but it still won't let me proceed. I also tried opening this Playgrounds file on another Mac and the same issue happened.
Replies
5
Boosts
1
Views
974
Activity
Jan ’23
Unable to run an app in swift playgrounds
Hello, I wanted to create a copy of an app that is used in the “Keep going with apps” playground. I copied the files names and code and created an app with all the files, however, I see an error saying: “No such module “Guide””, however in the playground it can be used. Help
Replies
0
Boosts
1
Views
560
Activity
Dec ’22
swift playgrounds ipad record movie missing
Has the "Record Movie" been removed from the latest version of Swift Playgrounds for the Ipad? I am getting ready to teach to 6th graders and do not see it.
Replies
0
Boosts
0
Views
541
Activity
Dec ’22
Labs and playgrounds
I am trying to view a lab from the Explorations Book (Structures) and I am getting the playground. Can anyone help me here?
Replies
1
Boosts
0
Views
1k
Activity
Dec ’22
Adding a tutorial file results in an "explicitly declare as resources" error
Following the instructions in the Create engaging content for Swift Playgrounds video I am adding a tutorial (Walkthrough.tutorial) file to my app. But, I get an error when I open the app on my iPad because of the non-swift files. I am using Xcode 14.1. The app was created using: File>New>Project>Swift Playgrounds App
Replies
0
Boosts
0
Views
790
Activity
Nov ’22
Playgrounds crashes all the time, what do I do?
IPad Playgrounds has started to routinely crash on me. It started crashing while I was trying to work with protocol meta types, so I thought something about that feature was doing it, but I’ve moved onto other projects, or even brand new ones and Playgrounds keeps crashing. It seems to have something to do with comments. If I’m just editing code it’ll keep going and the preview will update, but if I start to edit a comment I’ll see the compiler begin to spin and it crashes. I can post a video later if needed. I’ve rebooted the device and it’s still crashing. What do I do? If I delete and reinstall Playgrounds will all my projects stay there or do I need to back them up somehow?
Replies
7
Boosts
0
Views
4.1k
Activity
Nov ’22
"Create engaging content for Swift Playgrounds” error - Guide.tutorial unhandled
Going through the video Create engaging content for Swift Playgrounds (WWDC 2022) I have a pretty good idea about the changes that are required. But I am getting the following error (see attached) when I open my swiftpm in Playgrounds. I am running Playgrounds 4.1. Xcode 14.1 was used to build the swiftpm.
Replies
0
Boosts
0
Views
852
Activity
Nov ’22
Having an issue in Playgrounds - Object is not appearing
Greetings, I'm just learning Swift language by Playgrounds and some Udemy educations. I have a problem with Coding 2 - Connect and Solve episode. I supposed to build 3 - 2 - 3 blocks to three spots on 2nd column BUT blocks are acting like ghosting, it appears like for 0.5 seconds and disappear again. Then only change that I made is updating MacOS system with the lastest patch. Open to any ideas about the issue. Tnank you!
Replies
2
Boosts
0
Views
788
Activity
Nov ’22
Swift Playground - Font Bug
After the last update the code editor fonts is blurry while the rest of the menus remains correct. There is a fix or do i need to wait the next update? Is this the right place to submiss bug for the Swift Playgrounds developers? The bug is on a Mac Mini M1 running Ventura 13.0.1 (the last version as today) I checked Swift Playgrounds on a iMac M1 (8cpu, 8gpu) and a Macbook Pro 2017 (2 thunderbolts) both running Ventura 13.0.1 and there the code editor font is fine. I have also tried uninstalling the app and reinstalling it varius time even using AppCleaner but didn't work.
Replies
1
Boosts
0
Views
795
Activity
Nov ’22
Swift Playgrounds - Old version
Hi there, I'm not a developer yet, I'm starting the Apple Foundation Program in a couple of months, and I have to practice a bit on Swift Playgrounds beforehand. The problem is, I have an old iMac (late 2013) running on Catalina 10.15.7, and the app only work from 11.5 and above. My Mac isn't compatible with Big Sur, so I can't upgrade it anymore, and I don't own an iPad. Is it possible to find somewhere an old version of the app ? I think 3.2 is the one I need. Thank you for your help.
Replies
3
Boosts
1
Views
5.6k
Activity
Nov ’22
Playgrounds 4.1 always crashes a few seconds after launch (macOS 12.6.1)
Playgrounds 4.1 always crashes a few seconds after launch without even showing a window. When I switch to my Admin user, it doesn't crash. I can run simple Swift code there. My daily user account (where it crashes) doesn't have admin rights. rMBP late 2016 (won't get macOS 13) with macOS 12.6.1 (fresh installation 2 months ago without Migration Assistant, so no old prefs and stuff). Playgrounds 4.2 requires macOS 13. I deleted all playgrounds files from iCloud. Still crashes... Any prefs which I could delete? Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libswiftCore.dylib 0x7ff819b9c245 assertionFailure(:_:file:line:flags:) + 421 1 Playgrounds 0x10507e765 0x104dad000 + 2955109 2 Playgrounds 0x105038712 0x104dad000 + 2668306 3 Playgrounds 0x105036fc5 0x104dad000 + 2662341 4 Playgrounds 0x104fcfd40 0x104dad000 + 2239808 5 Playgrounds 0x104fcd860 0x104dad000 + 2230368 6 Playgrounds 0x104f9ba1a 0x104dad000 + 2026010 7 Playgrounds 0x104f97cad 0x104dad000 + 2010285 8 UIKitCore 0x7ff91a795482 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 272 9 UIKitCore 0x7ff91a794646 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4125 10 UIKitCore 0x7ff91a7920a3 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1568 11 UIKitCore 0x7ff91a7919d1 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 179 12 UIKitCore 0x7ff91b4c8359 -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 59 13 UIKitCore 0x7ff91a76edd8 -[UIApplication _run] + 946 14 UIKitCore 0x7ff91a763d00 UIApplicationMain + 133 15 Playgrounds 0x104db255b 0x104dad000 + 21851 16 dyld 0x105d5c52e start + 462
Replies
1
Boosts
0
Views
1.2k
Activity
Nov ’22
Swift
Hi was wanting some help i want to make a stop watch app that when I press the start button it stops the touch input on the display then you stop by pressing the volume rocker. Not sure what code would do that.
Replies
0
Boosts
0
Views
559
Activity
Nov ’22
What does "Extra arguments at positions #11, #12 in call mean" in swift Playgrounds?
Here is my code.
Replies
1
Boosts
1
Views
2.5k
Activity
Oct ’22