Swift Student Challenge

RSS for tag

Ask questions and connect with other developers and applicants for the Swift Student Challenge.

Posts under Swift Student Challenge subtopic

Post

Replies

Boosts

Views

Activity

Clarification on Swift Student Challenge 2024
I'm looking through all the latest posts to clarify a doubt I have, I noticed @eskimo's response claiming that the app must be built and run on iPadOS 16 or later. So I suppose it's okay to create an app that has SwiftData as the framework even if that dictates that the app will run on iOS 17; Also because when you create a new project in Swift Playgrounds 4.4.1 (latest version available at the moment) the target is set to iOS 17.2 automatically and technically you can't edit Package.swift file manually. Thanks in advance ❤️
2
1
735
Feb ’24
iOS in the Swift Student Challenge
Hey, everyone! I've been testing my .swiftpm app on an iPhone. If you're wondering about how I made the connections, I used a cable plugged into my Mac so that Xcode could communicate with the phone. Do you think that evaluators of the app will be alright with this method of testing it out as well? I'm particularly leaning towards the iPhone platform because my app requires a pedometer. Thanks! Ethan
1
0
767
Feb ’24
SSC student status verification documents
Hi, I am a Japanese student entering the swift student challenge this year. Will Apple be able to recognize my ID card, which is in JAPANESE, as a proof of my enrollment? The submission page states that To verify your student status, provide a PDF, PNG, or JPEG of your class schedule, other proof of enrollment, or proof of graduation within the past 6 months. Make sure the documentation clearly shows: Your name, The organization or school name, and The dates showing that it’s valid. In my ID. card, my name is written in Japanese , but other texts have subtitles in English, such as "Date of Birth" written under the Japanese. It also does not say the name of the school in English, only Japanese.
1
0
688
Feb ’24
Deployment destination for Swift Student Challenge
I'm creating a playground for SSC, and I'm using a lot of the new frameworks and capablities introduced in WWDC 2023, including @Observation, SwiftData, phaseAnimator...etc. Checking the forums just now, I see some people claiming the app should run on iOS 16 as well, so I revert the deployment destination from iOS 17 to iOS 16 in Package.swift, and now I have 150+ errors in my app playground. I know I can use #if available to write alternative code for earlier iOS versions but it feels like a redundancy since the app will be judged by Apple engineers who most likely have iOS 17 running on their devices, and since the judging process, I assume, takes into account the number of new technologies utilised. Should I write '#if available else' statements for the entire app playground, keep the deployment destination as iOS 17, or change the technologies used to iOS 16 or earlier (@observed object, CoreData...etc)? Which option is safer given that I only have less than 5 days left?
1
0
437
Feb ’24
Use of MapKit on my submission
Hi everyone! I'm working on an app to submit to the Swift Student Challenge this year and wanted to get some feedback on my plan to use MapKit. I know Apple is pretty open to using any of their frameworks for the contest. But I wanted to see if anyone had insights on whether my use of MapKit would comply with the contest rules and eligibility criteria. Any thoughts or advice you have on properly leveraging MapKit for my submission would be much appreciated! I want to make sure I avoid any issues since this framework is so integral to my app idea. Let me know if you have built a map-based app for Swift Student Challenge before as well. Thanks!
1
0
754
Feb ’24
Reality Kit on Swift Playgrounds
Hi Developers, How do I pass a Reality Kit file to use the Reality Kit file for the AR experience: import SwiftUI import RealityKit struct HelpAR : View { var body: some View { ARViewContainer().edgesIgnoringSafeArea(.all) } } struct ARViewContainer: UIViewRepresentable { func makeUIView(context: Context) -> ARView { let arView = ARView(frame: .zero) // Create a cube model let mesh = MeshResource.generateBox(size: 0.1, cornerRadius: 0.005) let material = SimpleMaterial(color: .gray, roughness: 0.15, isMetallic: true) let model = ModelEntity(mesh: mesh, materials: [material]) model.transform.translation.y = 0.05 // Create horizontal plane anchor for the content let anchor = AnchorEntity(.plane(.horizontal, classification: .any, minimumBounds: SIMD2<Float>(0.2, 0.2))) anchor.children.append(model) // Add the horizontal plane anchor to the scene arView.scene.anchors.append(anchor) return arView } func updateUIView(_ uiView: ARView, context: Context) {} } #Preview { HelpAR() }
2
0
926
Feb ’24
Submission Requirements for Xcode Playground - can it target iPad only?
Hi, On the Swift Student Challenge submission page the dropdown for “Which software should we use to run your app?” lists “Xcode 15 on macOS 13.5 or later” as one of the options. Is it ok to submit an Xcode Playground that targets iPadOS (and not macOS)? And then this would just be tested in the iPad Simulator? Thanks!
2
0
523
Feb ’24
SwiftData erors in Swift Playground
Hi, I want to add a SwiftData model to my Swift Playground in Xcode 15.2, but I get errors related to iOS version, has anyone encountered this? Thanks import Foundation import SwiftData struct testStruct: Identifiable { let id = UUID() var question: String var answer: String } @Model class testClass: Identifiable { let id = UUID() var question1: testStruct var question2: testStruct var question3: testStruct var question4: testStruct var question5: testStruct init(question1: testStruct, question2: testStruct, question3: testStruct, question4: testStruct, question5: testStruct) { self.question1 = question1 self.question2 = question2 self.question3 = question3 self.question4 = question4 self.question5 = question5 } }
1
0
1.2k
Feb ’24
Can I enhance and resubmit my rejected Swift Student Challenge project with added features?
Is it permissible to resubmit my previously rejected Swift Student Challenge project this year? I plan to make substantial changes, adding more functionality to enhance interactivity. I truly believe that my project idea has the potential to win, now that I have had the opportunity to learn more about Swift and SwiftUI over the past year.
1
0
709
Feb ’24
SwiftData confusing crash
Hi, Developers. The project I am working on includes SwiftData for storing information. When inspecting, code-wise everything looks as it should, however, sometimes when interacting with data, the app crashes. The confusing part is that it happens sometimes. On one simulator, it might crash, while on another it might not. Should I reinstall the app it seems to be working fine again. Do you have and ideas. Any advice is appreciated. Take care!
3
0
1.6k
Feb ’24
What is Playground????(App develop for Swift Student Challenge)
I don't really understand the exact meaning of "Build your app playground" on the Apple Swift Student Challenge home page. Does it mean to build a game app with a normal Xcode SwiftUI project? Or is there a platform called "App Playground"? So we cannot make an app that is not a game or an app that is not made with a platform called "App Playground" ????????? I'm confused. If you can use Japanese, it would be helpful to answer in Japanese.
2
2
1.3k
Feb ’24
SwiftData
I started playing around with the navigationDestination modifier. But currently it always re-routes me back to the list with the entries. Does someone have an idea why this happens? MainView NavigationStack { Form { Section { ProgressRing(percentage: $percentage) Text("1 of 3 compleatet") .font(.title2) .fontWeight(.medium) .foregroundStyle(Color.accentColor) } .listRowBackground(Color.clear) .listRowSeparator(.hidden) .frame(maxWidth: .infinity ,alignment: .center) .padding() Section("Daily tasks") { NavigationLink { EmptyView() } label: { Label("Log mood", systemImage: "seal") } NavigationLink { QuoteView() } label: { Label("Quote Gallery", systemImage: "seal") } NavigationLink { GratitudeListView() } label: { Label("Writing down gratitude", systemImage: "seal") } } } .navigationTitle("Hello, \(users.first?.name ?? "User")") } List { ForEach(gratitudes, id: \.self) { gratitude in NavigationLink(value: gratitude) { VStack(alignment: .leading) { Text(gratitude.gratitude1) Text(gratitude.createdAt, style: .date) } } } .navigationDestination(for: Gratitude.self, destination: { gratitude in GratitudeUpdateView(gratitude: gratitude) }) } .navigationTitle("Gratitude") .toolbar(.hidden, for: .tabBar) .overlay(alignment: .bottom) { NavigationLink { GratitudeAddView() } label: { PlusButton() } }
0
0
640
Jan ’24
Clarification on Swift Student Challenge 2024
I'm looking through all the latest posts to clarify a doubt I have, I noticed @eskimo's response claiming that the app must be built and run on iPadOS 16 or later. So I suppose it's okay to create an app that has SwiftData as the framework even if that dictates that the app will run on iOS 17; Also because when you create a new project in Swift Playgrounds 4.4.1 (latest version available at the moment) the target is set to iOS 17.2 automatically and technically you can't edit Package.swift file manually. Thanks in advance ❤️
Replies
2
Boosts
1
Views
735
Activity
Feb ’24
Using #available(iOS 17, *) for Swift Student Challenge
Hello there, Are we allowed to use iOS 17 features if they’re wrapped in an ‘if #available(iOS 17, *)’ check? I.e. the app would still function fine on iOS 16, but perhaps have an optional feature that works slightly better on iOS 17” Thanks!
Replies
3
Boosts
1
Views
1k
Activity
Feb ’24
iOS in the Swift Student Challenge
Hey, everyone! I've been testing my .swiftpm app on an iPhone. If you're wondering about how I made the connections, I used a cable plugged into my Mac so that Xcode could communicate with the phone. Do you think that evaluators of the app will be alright with this method of testing it out as well? I'm particularly leaning towards the iPhone platform because my app requires a pedometer. Thanks! Ethan
Replies
1
Boosts
0
Views
767
Activity
Feb ’24
SwiftPM using CoreML
Hello! With Swift Student Challenge submissions on Saturday, does anybody mind letting me know how to implement CoreML (I have a model trained in CreateML already) in the SwiftPM format? Thanks!
Replies
1
Boosts
0
Views
796
Activity
Feb ’24
SSC student status verification documents
Hi, I am a Japanese student entering the swift student challenge this year. Will Apple be able to recognize my ID card, which is in JAPANESE, as a proof of my enrollment? The submission page states that To verify your student status, provide a PDF, PNG, or JPEG of your class schedule, other proof of enrollment, or proof of graduation within the past 6 months. Make sure the documentation clearly shows: Your name, The organization or school name, and The dates showing that it’s valid. In my ID. card, my name is written in Japanese , but other texts have subtitles in English, such as "Date of Birth" written under the Japanese. It also does not say the name of the school in English, only Japanese.
Replies
1
Boosts
0
Views
688
Activity
Feb ’24
Deployment destination for Swift Student Challenge
I'm creating a playground for SSC, and I'm using a lot of the new frameworks and capablities introduced in WWDC 2023, including @Observation, SwiftData, phaseAnimator...etc. Checking the forums just now, I see some people claiming the app should run on iOS 16 as well, so I revert the deployment destination from iOS 17 to iOS 16 in Package.swift, and now I have 150+ errors in my app playground. I know I can use #if available to write alternative code for earlier iOS versions but it feels like a redundancy since the app will be judged by Apple engineers who most likely have iOS 17 running on their devices, and since the judging process, I assume, takes into account the number of new technologies utilised. Should I write '#if available else' statements for the entire app playground, keep the deployment destination as iOS 17, or change the technologies used to iOS 16 or earlier (@observed object, CoreData...etc)? Which option is safer given that I only have less than 5 days left?
Replies
1
Boosts
0
Views
437
Activity
Feb ’24
Swift Student Challenge
Hello dear developers, I am planning to make a navigation application for the swift student challenge, this navigation application will work with the internet via apple maps, is it suitable for this swift student challenge competition?
Replies
1
Boosts
0
Views
962
Activity
Feb ’24
Use of MapKit on my submission
Hi everyone! I'm working on an app to submit to the Swift Student Challenge this year and wanted to get some feedback on my plan to use MapKit. I know Apple is pretty open to using any of their frameworks for the contest. But I wanted to see if anyone had insights on whether my use of MapKit would comply with the contest rules and eligibility criteria. Any thoughts or advice you have on properly leveraging MapKit for my submission would be much appreciated! I want to make sure I avoid any issues since this framework is so integral to my app idea. Let me know if you have built a map-based app for Swift Student Challenge before as well. Thanks!
Replies
1
Boosts
0
Views
754
Activity
Feb ’24
Reality Kit on Swift Playgrounds
Hi Developers, How do I pass a Reality Kit file to use the Reality Kit file for the AR experience: import SwiftUI import RealityKit struct HelpAR : View { var body: some View { ARViewContainer().edgesIgnoringSafeArea(.all) } } struct ARViewContainer: UIViewRepresentable { func makeUIView(context: Context) -> ARView { let arView = ARView(frame: .zero) // Create a cube model let mesh = MeshResource.generateBox(size: 0.1, cornerRadius: 0.005) let material = SimpleMaterial(color: .gray, roughness: 0.15, isMetallic: true) let model = ModelEntity(mesh: mesh, materials: [material]) model.transform.translation.y = 0.05 // Create horizontal plane anchor for the content let anchor = AnchorEntity(.plane(.horizontal, classification: .any, minimumBounds: SIMD2<Float>(0.2, 0.2))) anchor.children.append(model) // Add the horizontal plane anchor to the scene arView.scene.anchors.append(anchor) return arView } func updateUIView(_ uiView: ARView, context: Context) {} } #Preview { HelpAR() }
Replies
2
Boosts
0
Views
926
Activity
Feb ’24
Accessing the Album (Swift Student Challenge)
Hi? I want to participate Swift Student Challenge. And I am wondering is it okay to make an app which can access album? I read Terms and Conditions and found no relevant content. Can anyone tell me whether it is possible? Thank you.
Replies
1
Boosts
0
Views
629
Activity
Feb ’24
Submission Requirements for Xcode Playground - can it target iPad only?
Hi, On the Swift Student Challenge submission page the dropdown for “Which software should we use to run your app?” lists “Xcode 15 on macOS 13.5 or later” as one of the options. Is it ok to submit an Xcode Playground that targets iPadOS (and not macOS)? And then this would just be tested in the iPad Simulator? Thanks!
Replies
2
Boosts
0
Views
523
Activity
Feb ’24
SwiftData erors in Swift Playground
Hi, I want to add a SwiftData model to my Swift Playground in Xcode 15.2, but I get errors related to iOS version, has anyone encountered this? Thanks import Foundation import SwiftData struct testStruct: Identifiable { let id = UUID() var question: String var answer: String } @Model class testClass: Identifiable { let id = UUID() var question1: testStruct var question2: testStruct var question3: testStruct var question4: testStruct var question5: testStruct init(question1: testStruct, question2: testStruct, question3: testStruct, question4: testStruct, question5: testStruct) { self.question1 = question1 self.question2 = question2 self.question3 = question3 self.question4 = question4 self.question5 = question5 } }
Replies
1
Boosts
0
Views
1.2k
Activity
Feb ’24
Can I enhance and resubmit my rejected Swift Student Challenge project with added features?
Is it permissible to resubmit my previously rejected Swift Student Challenge project this year? I plan to make substantial changes, adding more functionality to enhance interactivity. I truly believe that my project idea has the potential to win, now that I have had the opportunity to learn more about Swift and SwiftUI over the past year.
Replies
1
Boosts
0
Views
709
Activity
Feb ’24
What's the difference
I have a few questions about the Swift Student Challenge development tools. What is the difference between swift playground and Xcode playground? Also, is it possible to develop vision OS in the playground?
Replies
2
Boosts
0
Views
3.9k
Activity
Feb ’24
SwiftData confusing crash
Hi, Developers. The project I am working on includes SwiftData for storing information. When inspecting, code-wise everything looks as it should, however, sometimes when interacting with data, the app crashes. The confusing part is that it happens sometimes. On one simulator, it might crash, while on another it might not. Should I reinstall the app it seems to be working fine again. Do you have and ideas. Any advice is appreciated. Take care!
Replies
3
Boosts
0
Views
1.6k
Activity
Feb ’24
Is This How You "Get Ready" for the Swift Student Challenge?
Do the students have a specific topic for the app they are going to make? (If so, will it be given on February 5, 2024?) The students are expected to submit their apps within three weeks from February 5, 2024, am I correct? The apps the students are creating are expected to be "iPhone" Swift Playground apps, am I correct?
Replies
1
Boosts
0
Views
635
Activity
Feb ’24
Am I Correct on "Getting Ready"
Do the students have a specific topic for the app they are going to make? (If so, will it be given on February 5, 2024?) The students are expected to submit their apps within three weeks from February 5, 2024, am I correct? The apps the students are creating are expected to be "iPhone" Swift Playground apps, am I correct?
Replies
1
Boosts
0
Views
396
Activity
Feb ’24
What is Playground????(App develop for Swift Student Challenge)
I don't really understand the exact meaning of "Build your app playground" on the Apple Swift Student Challenge home page. Does it mean to build a game app with a normal Xcode SwiftUI project? Or is there a platform called "App Playground"? So we cannot make an app that is not a game or an app that is not made with a platform called "App Playground" ????????? I'm confused. If you can use Japanese, it would be helpful to answer in Japanese.
Replies
2
Boosts
2
Views
1.3k
Activity
Feb ’24
XCode Project for Student Project
Hey I started working on an idea for the swift student challenge but I created a xcode project instead of a playground, is this okay or does it have to be a playground? Thank you !
Replies
1
Boosts
0
Views
433
Activity
Jan ’24
SwiftData
I started playing around with the navigationDestination modifier. But currently it always re-routes me back to the list with the entries. Does someone have an idea why this happens? MainView NavigationStack { Form { Section { ProgressRing(percentage: $percentage) Text("1 of 3 compleatet") .font(.title2) .fontWeight(.medium) .foregroundStyle(Color.accentColor) } .listRowBackground(Color.clear) .listRowSeparator(.hidden) .frame(maxWidth: .infinity ,alignment: .center) .padding() Section("Daily tasks") { NavigationLink { EmptyView() } label: { Label("Log mood", systemImage: "seal") } NavigationLink { QuoteView() } label: { Label("Quote Gallery", systemImage: "seal") } NavigationLink { GratitudeListView() } label: { Label("Writing down gratitude", systemImage: "seal") } } } .navigationTitle("Hello, \(users.first?.name ?? "User")") } List { ForEach(gratitudes, id: \.self) { gratitude in NavigationLink(value: gratitude) { VStack(alignment: .leading) { Text(gratitude.gratitude1) Text(gratitude.createdAt, style: .date) } } } .navigationDestination(for: Gratitude.self, destination: { gratitude in GratitudeUpdateView(gratitude: gratitude) }) } .navigationTitle("Gratitude") .toolbar(.hidden, for: .tabBar) .overlay(alignment: .bottom) { NavigationLink { GratitudeAddView() } label: { PlusButton() } }
Replies
0
Boosts
0
Views
640
Activity
Jan ’24