Swift Student Challenge

RSS for tag

Ask questions and connect with other challenge applicants.

Posts under Swift Student Challenge tag

200 Posts

Post

Replies

Boosts

Views

Activity

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
1
36k
Jun ’24
Fail to add NSCameraUsage Desciption
Hello everyone,I am a student who is working on my final project of my college.I do not get an official development account since I do not need to put my app on AppStore. In my project,I need to use the camera of iOS device, and I know I need to add NSCameraUsageDesciption in Info.plist.However, as I add the description in my Info and build my project, it failed and says"Provisioning profile "iOS Team Provisioning Profile: " doesn't include the NSCameraUsageDescription and NSPhotoLibraryUsageDescription entitlements." I also notice that in the Info.plist file, when I change the property type to entitlements,I just cannot find NSCameraUsageDescription when I add row. What's the problem?Is this because I am not an official developer?
1
0
1.6k
Apr ’24
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
844
Apr ’24
xcode saying "paused app on ipad" and "Thread 1: breakpoint 1.1 (1)"
so my code is: import UIKit class CanvasView: UIView { let originX: CGFloat = 150 let originY: CGFloat = 300 let squareSide: CGFloat = 100 var rubiksCubeDelegate: RubiksCubeDelegate? = nil var fromCol: Int = -1 var fromRow: Int = -1 override func draw(_ rect: CGRect) { drawFront() drawTop() drawRight() } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { let firstTouch = touches.first! let fingerLocation = firstTouch.location(in: self) fromCol = Int((fingerLocation.x - originX) / squareSide) fromRow = Int((fingerLocation.y - originY) / squareSide) } override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) { let firstTouch = touches.first! let fingerLocation = firstTouch.location(in: self) let toCol: Int = Int((fingerLocation.x - originX) / squareSide) let toRow: Int = Int((fingerLocation.y - originY) / squareSide) print("V: from (\(fromCol), \(fromRow) to (\(toCol), \(toRow))") rubiksCubeDelegate?.moveFinger(fromCol: fromCol, fromRow: fromRow, toCol: toCol, toRow: toRow) } func drawFront() { drawsquare(col: 0, row: 0, color: .green) drawsquare(col: 1, row: 0, color: .orange) drawsquare(col: 2, row: 0, color: .blue) drawsquare(col: 0, row: 1, color: .white) drawsquare(col: 1, row: 1, color: .yellow) drawsquare(col: 2, row: 1, color: .red) drawsquare(col: 0, row: 2, color: .green) drawsquare(col: 1, row: 2, color: .blue) drawsquare(col: 2, row: 2, color: .orange) } func drawTop() { drawTopParallelogram(col: 0, row: 0, color: .red) drawTopParallelogram(col: 0, row: 1, color: .blue) drawTopParallelogram(col: 0, row: 2, color: .green) drawTopParallelogram(col: 1, row: 0, color: .yellow) drawTopParallelogram(col: 1, row: 1, color: .red) drawTopParallelogram(col: 1, row: 2, color: .white) drawTopParallelogram(col: 2, row: 0, color: .blue) drawTopParallelogram(col: 2, row: 1, color: .orange) drawTopParallelogram(col: 2, row: 2, color: .green) } func drawRight() { drawRightParallelogram(col: 0, row: 0, color: .orange) drawRightParallelogram(col: 1, row: 0, color: .red) drawRightParallelogram(col: 2, row: 0, color: .red) drawRightParallelogram(col: 0, row: 1, color: .blue) drawRightParallelogram(col: 1, row: 1, color: .orange) drawRightParallelogram(col: 2, row: 1, color: .white) drawRightParallelogram(col: 0, row: 2, color: .white) drawRightParallelogram(col: 1, row: 2, color: .blue) drawRightParallelogram(col: 2, row: 2, color: .green) } func drawRightParallelogram(col: Int, row: Int,color: CubeColor) { colorOf(color: color).setFill() let topLeftX: CGFloat = originX + 3 * squareSide + CGFloat(col) * squareSide/2 let topLeftY: CGFloat = originY - CGFloat(col) * squareSide/2 + CGFloat(row) * squareSide let path = UIBezierPath() path.move(to: CGPoint(x: topLeftX, y: topLeftY)) path.addLine(to: CGPoint(x: topLeftX + squareSide/2, y: topLeftY - squareSide/2)) path.addLine(to: CGPoint(x: topLeftX + squareSide/2, y: topLeftY + squareSide/2)) path.addLine(to: CGPoint(x: topLeftX, y: topLeftY + squareSide)) path.close() path.fill() path.stroke() } func drawTopParallelogram(col: Int, row: Int,color: CubeColor) { colorOf(color: color).setFill() let bottomLeftX: CGFloat = originX + CGFloat(col) * squareSide + CGFloat(2 - row) * squareSide/2 let bottomLeftY: CGFloat = originY + CGFloat(row - 2)*squareSide/2 let path = UIBezierPath() path.move(to: CGPoint(x: bottomLeftX, y: bottomLeftY )) path.addLine(to: CGPoint(x: bottomLeftX + squareSide/2,y: bottomLeftY - squareSide/2)) path.addLine(to: CGPoint(x: bottomLeftX + squareSide/2 + squareSide, y: bottomLeftY - squareSide/2)) path.addLine(to: CGPoint(x: bottomLeftX + squareSide, y: bottomLeftY)) path.close() path.fill() path.stroke() } func drawsquare(col: Int, row: Int,color: CubeColor) { colorOf(color: color).setFill() let squareX: CGFloat = originX + CGFloat(col) * squareSide let squareY: CGFloat = originY + CGFloat(row) * squareSide let square = UIBezierPath(rect: CGRect(x: squareX, y:squareY, width:squareSide, height:squareSide)) square.fill() square.stroke() } func colorOf(color: CubeColor) -> UIColor { var c: UIColor = .black switch color { case .blue: c = UIColor.blue case .green: c = UIColor.green case .orange: c = UIColor.orange case .red: c = UIColor.red case .white: c = UIColor.white case .yellow: c = UIColor.yellow } return c } } at "func drawFront() {" it said "Thread 1: breakpoint 1.1 (1)" can any one help me fix this the app is always pausing
0
0
809
Mar ’24
Navigation bar moves upward under the notch on keyboard appearance.
My app has a view that appears from a NavigationLink. The view has a list and a search bar; when a user taps the search bar the keyboard appears correctly. BUT, the entire view, including the navigationBarTitle and the navigationBarBackButton, move upward. This causes the navigationBarTitle and the navigationBarBackButton to move under the notch, where the back button doesn't work. To use the back button the user has to dismiss the keyboard with the return key, which moves the navigationBarTitle and back button downward and then tap the back button. This cannot be an uncommon situation, but I've spent the morning trying to find a way to prevent the NavigationBarTitle and <back button from moving upward where the user can't use the <back button when the keyboard appears. Is there a way to too that?
1
1
914
Mar ’24
Text scrolling Issue with Swift/Xcode started in OS Sonoma
We have a teleprompter scrolling app that has worked fine up through OS Ventura. Now in Sonoma the text starts to slow down after 20-30 seconds, then if left alone ends up coming to a complete stop after 2-3 minutes and is frozen until we restart the scrolling. An odd work around, not a fix, is that when we switch the display from dark mode to light mode it will restart the scrolling as if we manually stopped and restarted. It was built in Swift Storyboard/Xcode 15 and we have been testing on MacBooks with Intel, Silicon, M1, M2 . OS Sonoma is the only common denominator in which we experience the issue. We submitted a case to Apple yesterday but has anyone else experienced similar issues and heard of a fix?
0
0
797
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
1.1k
Mar ’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
1.4k
Mar ’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
923
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
808
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
991
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
651
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.
Replies
3
Boosts
1
Views
36k
Activity
Jun ’24
Custom dateFormat like "dd-mm-yyyy" doesn't work properly if device follows japanese/buddhist calendar
In swift if using custom dateFormat like "dd-mm-yyyy" and device follows japanese calendar now get dateForm dateFormatter , expected "30-05-Reiwa6". but dateFormatter return string is "30=05-0006"
Replies
4
Boosts
0
Views
1.3k
Activity
Jun ’24
Fail to add NSCameraUsage Desciption
Hello everyone,I am a student who is working on my final project of my college.I do not get an official development account since I do not need to put my app on AppStore. In my project,I need to use the camera of iOS device, and I know I need to add NSCameraUsageDesciption in Info.plist.However, as I add the description in my Info and build my project, it failed and says"Provisioning profile "iOS Team Provisioning Profile: " doesn't include the NSCameraUsageDescription and NSPhotoLibraryUsageDescription entitlements." I also notice that in the Info.plist file, when I change the property type to entitlements,I just cannot find NSCameraUsageDescription when I add row. What's the problem?Is this because I am not an official developer?
Replies
1
Boosts
0
Views
1.6k
Activity
Apr ’24
SSC24 Winners Prizes (individual membership in the Apple Developer Program)
When can the winners expect to get their free year of individual membership in the Apple Developer Program? And for winners who already were part of the program, will they see an updated renewal date (postponed by one year compared to the original one) under Account -> Membership details?
Replies
0
Boosts
0
Views
754
Activity
Apr ’24
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.
Replies
1
Boosts
0
Views
844
Activity
Apr ’24
xcode saying "paused app on ipad" and "Thread 1: breakpoint 1.1 (1)"
so my code is: import UIKit class CanvasView: UIView { let originX: CGFloat = 150 let originY: CGFloat = 300 let squareSide: CGFloat = 100 var rubiksCubeDelegate: RubiksCubeDelegate? = nil var fromCol: Int = -1 var fromRow: Int = -1 override func draw(_ rect: CGRect) { drawFront() drawTop() drawRight() } override func touchesBegan(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) { let firstTouch = touches.first! let fingerLocation = firstTouch.location(in: self) fromCol = Int((fingerLocation.x - originX) / squareSide) fromRow = Int((fingerLocation.y - originY) / squareSide) } override func touchesEnded(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) { let firstTouch = touches.first! let fingerLocation = firstTouch.location(in: self) let toCol: Int = Int((fingerLocation.x - originX) / squareSide) let toRow: Int = Int((fingerLocation.y - originY) / squareSide) print("V: from (\(fromCol), \(fromRow) to (\(toCol), \(toRow))") rubiksCubeDelegate?.moveFinger(fromCol: fromCol, fromRow: fromRow, toCol: toCol, toRow: toRow) } func drawFront() { drawsquare(col: 0, row: 0, color: .green) drawsquare(col: 1, row: 0, color: .orange) drawsquare(col: 2, row: 0, color: .blue) drawsquare(col: 0, row: 1, color: .white) drawsquare(col: 1, row: 1, color: .yellow) drawsquare(col: 2, row: 1, color: .red) drawsquare(col: 0, row: 2, color: .green) drawsquare(col: 1, row: 2, color: .blue) drawsquare(col: 2, row: 2, color: .orange) } func drawTop() { drawTopParallelogram(col: 0, row: 0, color: .red) drawTopParallelogram(col: 0, row: 1, color: .blue) drawTopParallelogram(col: 0, row: 2, color: .green) drawTopParallelogram(col: 1, row: 0, color: .yellow) drawTopParallelogram(col: 1, row: 1, color: .red) drawTopParallelogram(col: 1, row: 2, color: .white) drawTopParallelogram(col: 2, row: 0, color: .blue) drawTopParallelogram(col: 2, row: 1, color: .orange) drawTopParallelogram(col: 2, row: 2, color: .green) } func drawRight() { drawRightParallelogram(col: 0, row: 0, color: .orange) drawRightParallelogram(col: 1, row: 0, color: .red) drawRightParallelogram(col: 2, row: 0, color: .red) drawRightParallelogram(col: 0, row: 1, color: .blue) drawRightParallelogram(col: 1, row: 1, color: .orange) drawRightParallelogram(col: 2, row: 1, color: .white) drawRightParallelogram(col: 0, row: 2, color: .white) drawRightParallelogram(col: 1, row: 2, color: .blue) drawRightParallelogram(col: 2, row: 2, color: .green) } func drawRightParallelogram(col: Int, row: Int,color: CubeColor) { colorOf(color: color).setFill() let topLeftX: CGFloat = originX + 3 * squareSide + CGFloat(col) * squareSide/2 let topLeftY: CGFloat = originY - CGFloat(col) * squareSide/2 + CGFloat(row) * squareSide let path = UIBezierPath() path.move(to: CGPoint(x: topLeftX, y: topLeftY)) path.addLine(to: CGPoint(x: topLeftX + squareSide/2, y: topLeftY - squareSide/2)) path.addLine(to: CGPoint(x: topLeftX + squareSide/2, y: topLeftY + squareSide/2)) path.addLine(to: CGPoint(x: topLeftX, y: topLeftY + squareSide)) path.close() path.fill() path.stroke() } func drawTopParallelogram(col: Int, row: Int,color: CubeColor) { colorOf(color: color).setFill() let bottomLeftX: CGFloat = originX + CGFloat(col) * squareSide + CGFloat(2 - row) * squareSide/2 let bottomLeftY: CGFloat = originY + CGFloat(row - 2)*squareSide/2 let path = UIBezierPath() path.move(to: CGPoint(x: bottomLeftX, y: bottomLeftY )) path.addLine(to: CGPoint(x: bottomLeftX + squareSide/2,y: bottomLeftY - squareSide/2)) path.addLine(to: CGPoint(x: bottomLeftX + squareSide/2 + squareSide, y: bottomLeftY - squareSide/2)) path.addLine(to: CGPoint(x: bottomLeftX + squareSide, y: bottomLeftY)) path.close() path.fill() path.stroke() } func drawsquare(col: Int, row: Int,color: CubeColor) { colorOf(color: color).setFill() let squareX: CGFloat = originX + CGFloat(col) * squareSide let squareY: CGFloat = originY + CGFloat(row) * squareSide let square = UIBezierPath(rect: CGRect(x: squareX, y:squareY, width:squareSide, height:squareSide)) square.fill() square.stroke() } func colorOf(color: CubeColor) -&gt; UIColor { var c: UIColor = .black switch color { case .blue: c = UIColor.blue case .green: c = UIColor.green case .orange: c = UIColor.orange case .red: c = UIColor.red case .white: c = UIColor.white case .yellow: c = UIColor.yellow } return c } } at "func drawFront() {" it said "Thread 1: breakpoint 1.1 (1)" can any one help me fix this the app is always pausing
Replies
0
Boosts
0
Views
809
Activity
Mar ’24
Swift Student Challenge 2025?
Since there is no theme for the Swift Student Challenge, could we prepare an app far ahead in advance? Like, work on the 2025 challenge right now?
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’24
Navigation bar moves upward under the notch on keyboard appearance.
My app has a view that appears from a NavigationLink. The view has a list and a search bar; when a user taps the search bar the keyboard appears correctly. BUT, the entire view, including the navigationBarTitle and the navigationBarBackButton, move upward. This causes the navigationBarTitle and the navigationBarBackButton to move under the notch, where the back button doesn't work. To use the back button the user has to dismiss the keyboard with the return key, which moves the navigationBarTitle and back button downward and then tap the back button. This cannot be an uncommon situation, but I've spent the morning trying to find a way to prevent the NavigationBarTitle and <back button from moving upward where the user can't use the <back button when the keyboard appears. Is there a way to too that?
Replies
1
Boosts
1
Views
914
Activity
Mar ’24
Text scrolling Issue with Swift/Xcode started in OS Sonoma
We have a teleprompter scrolling app that has worked fine up through OS Ventura. Now in Sonoma the text starts to slow down after 20-30 seconds, then if left alone ends up coming to a complete stop after 2-3 minutes and is frozen until we restart the scrolling. An odd work around, not a fix, is that when we switch the display from dark mode to light mode it will restart the scrolling as if we manually stopped and restarted. It was built in Swift Storyboard/Xcode 15 and we have been testing on MacBooks with Intel, Silicon, M1, M2 . OS Sonoma is the only common denominator in which we experience the issue. We submitted a case to Apple yesterday but has anyone else experienced similar issues and heard of a fix?
Replies
0
Boosts
0
Views
797
Activity
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"
Replies
0
Boosts
0
Views
1.1k
Activity
Mar ’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"
Replies
4
Boosts
2
Views
1.4k
Activity
Mar ’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 :)
Replies
3
Boosts
0
Views
923
Activity
Feb ’24
No confirmation email
Hello, I have submitted an application about a day ago before the deadline, but still have not received a confirmation email. I've tried to contact customer service about it, but I haven't gotten an answer back yet. Is there still a chance that they received my application?
Replies
1
Boosts
0
Views
822
Activity
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.
Replies
1
Boosts
0
Views
808
Activity
Feb ’24
I've built an Apple Watch App for the Swift Student Challenge.
I've built an Apple Watch app. And, I'm not able to export it as a playground. Am I screwed? Or is there a way I can still submit it as a .swiftpm?
Replies
2
Boosts
0
Views
817
Activity
Feb ’24
Swift Data App Runs on iOS 17 but Fails on iOS 16: Submission Eligibility?
Hi, I'm using SwiftData in my app with the @available(iOS 17.0, *) annotation. It runs perfectly on iOS 17, but I encounter a weird memory error I can't seem to solve on iOS 16. Can I still submit my app, or will it be disqualified for not running on iOS 16? Thanks!
Replies
1
Boosts
0
Views
958
Activity
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?
Replies
4
Boosts
0
Views
991
Activity
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() }
Replies
2
Boosts
0
Views
651
Activity
Feb ’24
Separate each paragraph in a list
Hi, I'd like to separate each paragraph of a text in a list, I'm trying to find how to do it, I know it's certainly a dumb question but I'm new at coding, please be kind haha, may someone help me? thanks a million
Replies
1
Boosts
0
Views
704
Activity
Feb ’24
Confirmation Email for Swift Student Challenge?
I just clicked submit on my application to the swift student challenge and it brought me back to the screen where I login in with my developer account. After I logged in again all of the information from my application was gone. Does this mean my application went through or was I supposed to get some type of confirmation email?
Replies
1
Boosts
0
Views
782
Activity
Feb ’24