Swift Student Challenge

RSS for tag

Discuss Swift Student Challenge.

Post

Replies

Boosts

Views

Activity

Can I change iOS version in package.swift to use SwiftData?
For the swift student challenge I was hoping to use swift data, I found that since it's a playground app, in package.swift the defaults is set to iOS 16 which means you can't use swift data. I changed it to iOS 17 and everything works but I want to know if that goes against the rules in anyway, changing th bios version in package.swift? This was the code I changed in package.swift. let package = Package( name: "ProStepper", platforms: [ .iOS("17.0") ],
3
1
210
1w
SwiftData Predicates and .contains(where: )
Hi, I have the following predicate used in a SwiftData Query: #Predicate<Item> { searchText.isEmpty || $0.myarray.contains(where: { $0.text.localizedStandardContains(searchText) }) }) Even though this compiles, I get the unsupportedKeyPath error in the logs: Query encountered an error: SwiftData.SwiftDataError(_error: SwiftData.SwiftDataError._Error.unsupportedKeyPath) I thought I could use .contains(where:) inside predicates, but this doesn't work. What could be the problem? Item.myarray is an array of a Codable struct type, and searchText is a String.
3
1
1k
Feb ’24
Register as apple developer for free
Hey Developers! Help! I was going through the "Eligibilty" doc for swift student challenge (https://developer.apple.com/swift-student-challenge/eligibility/), where it is mentioned to "Be registered for free with Apple as an Apple developer or be a member of the Apple Developer Program". Please guide me how do we do this free egisteration as the only option I can see on the devleoper app is to pay for it.
3
0
16k
Nov ’23
Applying to WWDC as a winner - selecting my name or a 13–17 year old?
Hello, I’m a 15-year-old winner of the Swift Student Challenge (in the regular group). When applying to attend WWDC, it asks me to choose who I am requesting for. The options are my name, and then “An attendee who is 13–17 years old.” If both are true for me, which do I choose? I’m mainly asking because if I don’t choose the latter, it doesn’t ask me for my parent‘s contact info. Please let me know! Thanks in advance.
1
0
514
Mar ’24
Swift Student Challenge Resources
Swift Student Challenge 2024: Swift Student Challenge main page Swift Student Challenge > Eligibility Swift Student Challenge > Terms and Conditions, aka the fine print News and Updates > Announcing the Swift Student Challenge 2024 News and Updates > Swift Student Challenge applications open February 5 News and Updates > Apply for the Swift Student Challenge now through February 25 Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
0
0
805
Feb ’24
Swift Student Challenge 2024 deployment targets
The eagle-eyed amongst you might have noticed a recent change to the information about deployment targets in the Swift Student Challenge fine print. Here’s a short FAQ about that. If you have any follow-up questions, post them below and I’ll answer them there. Can I use iPadOS 17 APIs in my submission? Yes. We expect to review your submission on the latest public release of iPadOS. Does that include APIs introduced in a dot release? Yes. Right now the latest public release of iPadOS is iPadOS 17.3.1. If your submission relies on an API introduced in, say, iPadOS 17.2, that’s absolutely fine. My iPad doesn’t support iPadOS 17. Can I ask for a review on iPadOS 16? iPadOS 17 is generally compatible with iPadOS 16. If we notice problems with your submission on iPadOS 17, we’ll retest it on the latest public release of iPadOS 16. What about macOS? It’s basically the same story. So, if your submission targets macOS, we expect to review it on the latest public release. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
4
2
980
Feb ’24
Swift Student Challenge Device Specification
Hi, I have submitted my playground for the Swift Student Challenge 2024. As in the competition guidelines it does not state that the app is going to be tested on a certain iPad Pro model- 12.9 or 11. However, my playground is only optimized for 12.9 as there are no specific rules on thee device it is being tested on. I have already submitted my playground so how will I inform the judges which iPad they have to test it on? Thanks :)
3
0
667
Feb ’24
Playing Sounds
Hello, I’ve been trying to play system sounds in my app, but this hasn’t really been working. I am frequently switching between speech recognition (Speech framework) and sounds, so perhaps that’s where the issue lies. However, despite my best efforts, I haven't been able to solve the issue. I've been resetting the AVAudioSession category before playing a sound or starting speech recognition (as depicted in the code snippet below), to no avail. Has this happened to anyone else? Does anybody know how to fix the issue? recognizer = nil try? AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: []) try? AVAudioSession.sharedInstance().setActive(true) AudioServicesPlaySystemSound(1113) try? AVAudioSession.sharedInstance().setCategory(.record, mode: .spokenAudio, options: []) try? AVAudioSession.sharedInstance().setActive(true) recognizer = SpeechRecognition(word: wordSheet) recognizer!.startRecognition() Thank you.
1
0
622
Feb ’24
Using camera on app playground submission
Hello! I have a question about using the camera in my app. I created it using Xcode 15 app playground, and it is working properly on iPhone and iPad, the problem is that in the application form, it says that the playground app created in Xcode will be tested in the simulator. But as we know, the camera does not work in the simulator. My app uses AR resources and I need to use the camera, how can I proceed? Can I ask them to test it on a real device?
4
0
618
Feb ’24
Erase random words in sentences each time I click on a button
Hi ! I need help for coding something : I want a function to erase random words on it, I tried everything found in the internet, nothing's worked. (here's my code : ) Anyone could give an eye to it? Many thanks struct ContentView: View { @State private var showScannerSheet = false @State private var texts:[ScanData] = [] var body: some View { NavigationView { ZStack { Color.white .ignoresSafeArea() VStack{ if texts.count > 0{ List{ ForEach(texts){text in NavigationLink( destination:ScrollView{Text(text.content) .padding()}, label: { Text(text.content).lineLimit(1) }) } } } else{ Button(action: { self.showScannerSheet = true }, label : { VStack { Image(systemName: "doc.text.viewfinder") .resizable() .frame(width: 200, height: 200) .font(.title) VStack { Text("Scan here to begin !") }.padding() } }) .sheet(isPresented: $showScannerSheet, content: { makeScannerView() }) } } } } } private func makeScannerView()-> ScannerView { ScannerView(completion: { textPerPage in if let outputText = textPerPage?.joined(separator: "\n").trimmingCharacters(in: .whitespacesAndNewlines){ let newScanData = ScanData(content: outputText) self.texts.append(newScanData) let numberOfWordsToRemove = 5 let modifiedText = removeRandomWordsInScanData(newScanData, numberOfWordsToRemove : numberOfWordsToRemove) newScanData.content = modifiedText return ScannerView(completion: { }) } self.showScannerSheet = false }) } } #Preview { ContentView() }
2
0
494
Feb ’24