Swift Student Challenge

RSS for tag

Discuss Swift Student Challenge.

Post

Replies

Boosts

Views

Activity

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
1
960
Nov ’23
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
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
410
Jan ’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.1k
Feb ’24
Using iPadOS 17 / macOS 14 features in challenge submission
Hi! I just read the updated terms and conditions, and I have a question regarding the submission requirements: Your app playground must be fully functioning, and be built with and run on Swift Playgrounds 4.4 on iPadOS 16 or macOS 13.5 or Xcode 15 on macOS 13.5 or later. You may incorporate the use of Apple Pencil. This means that the app can be built on iPadOS 17 / macOS 14 as well (and perhaps add some features specific to iPadOS 17 / macOS 14 or later using features such as SwiftData?) but does the app need to be fully compatible with earlier versions as well? I think this means it should be compatible with all versions from iPadOS 16 / macOS 13.5 onwards?
4
1
1k
Feb ’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
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
481
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
642
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
842
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
596
Feb ’24
Xcode Playground - iOS-only target, and iOS 17-only features?
My app looks the best when it's run on an iPhone simulator, since that is what I was targeting from the start. I’m aware that an Xcode app playground submission will be run on MacOS in the Simulator only, but is there a way for me to limit/ask the Simulator to only use the iPhone? I'm seeing a few posts on this forum giving the impression that submissions will primarily be run on either the iPad, or Swift Playgrounds on Mac. Furthermore, my app depends a lot on some of the new iOS 17 features (SwiftData, @Observable macros, etc.) I followed this thread to modify my Package.swift file to target iOS 17 and above only. Is this still a good idea, or should I instead wrap the whole app in a if #available version check?
3
0
662
Feb ’24