Education

RSS for tag

Teach students of all ages to code in Swift using a variety of resources in your curriculum.

Education Documentation

Posts under Education tag

24 Posts
Sort by:
Post not yet marked as solved
1 Replies
722 Views
Hi Apple IT Developer Team, In what format should the GetToken response be returned? The session explains "The JSON Web Token should be signed by the MDM server's private key.", but it seems vague to me. A sample response would be appreciated.
Posted
by joshtaka.
Last updated
.
Post not yet marked as solved
1 Replies
218 Views
I am just starting to learn swiftui. I saw a demo where you could drag and drop elements (label, button, slider, etc...)onto the device canvas and then the code would be inserted. I'm using the latest Xcode. please advise
Posted
by Elbon.
Last updated
.
Post not yet marked as solved
0 Replies
276 Views
Apple SwiftUI landmarks tutorial error: Can someone who has gone through this tutorial help me figure out why when adding the hike view folders from the project resources and its hike JSON data files, does the project appear to start crashing the previews on the canvas? I reverted back to where things were working by removing the project files I was directed to add and now the previews work again.
Posted
by NYvoyager.
Last updated
.
Post not yet marked as solved
7 Replies
558 Views
Hey folks! I remember some weeks/months ago to get some lessons with updated Swift 5.9, I'm just not sure if this happened while I was using Swift Playgrounds beta from TestFlight. Anyways, I went back to study using Swift Playgrounds and all the lessons are using Swift 5.8 here. I don't know what happened or how can I have the lessons updated again. Anyone else noticed this issue? Any tip on how to solve it?
Posted
by xDhii.
Last updated
.
Post marked as solved
2 Replies
446 Views
Hello everyone, first let me say a few words about myself. I am an IT student and I want to learn and develop some applications in Swift. Now I am working on one application and I need a barcode scanner to complete it. So I need help from someone who can help me with a simple barcode scanner. My idea is that the barcode will be on one screen and they have to read the code and write it to a variable. That's my idea. I will appreciate the full code or help. thank you for answer
Posted
by MORADENS.
Last updated
.
Post not yet marked as solved
4 Replies
702 Views
We are in class working with Develop in Swift Explorations. We created a new playground file to create a learning playground for notes and exercises and since the update to Xcode 15, it is running extremely sluggish and slow. Playground file is build for iOS and using Simulator for iPhone 15. We also tried to run for Mac and same issues. In addition, the Macbook Air M2s are running VERY hot - which is unusual.
Posted
by jpaulync3.
Last updated
.
Post marked as solved
3 Replies
504 Views
I am starting with programming. I changed career of late. I learnt basics of python very recently. I am keen to work as iOS developer in future. There's ambiguity how to kickstart my journey of programming and app dev. I need suggestion regarding what resources to follow. It's hard to do it without proper and directed guidance. In Book store, I could see books. I downloaded two of them, one is Develop in Swift Fundamentals and the other book is Develop in Swift Explorations. I am confused which one to read first. Is there some other good resources available online? Some YT channel I could refer? Please help me!
Posted Last updated
.
Post not yet marked as solved
0 Replies
565 Views
Hi everyone, I'm currently working on implementing some of the discussed ideas, but I've run into an issue. Our company uses managed Apple IDs on all of our iPhones are company-owned. Recently, we updated some of these devices to iOS 17, but we've noticed that the Wallet app is not visible on them. There is no restrictions from our MDM and without the managed Apple ID signed in i can see the app and its usable.
Posted
by mmobin.
Last updated
.
Post not yet marked as solved
0 Replies
410 Views
What is an older computer that I can get that will still run XCode 15. I would like to start teaching my 9 year old grandson programming. My budget is limited. We are also looking to create a programming club at the local high school Thank you for any help you can give.
Posted
by dbpete.
Last updated
.
Post not yet marked as solved
4 Replies
2.8k Views
This may be a dumb question but I cannot find the 'Playgroundbasics.playground' file nor the folder where i am supposed to download it?I am following the Introduction to Swift and I am on Lesson 1 trying to figure out where to find this folder to download.thank you for the help!
Posted Last updated
.
Post not yet marked as solved
1 Replies
858 Views
I'm using ScrollView to display my course list, and each card in the list, named 'CourseCardView' as shown in the code. When I test it on both the simulator and a physical device, I notice that scrolling is not smooth and feels laggy. I'm not sure how to address this issue. Here is my code: // // CourseListView.swift // LexueSwiftUI // // Created by bobh on 2023/9/3. // import SwiftUI struct CourseCardView: View { let cardHeight: CGFloat = 150 let cardCornelRadius: CGFloat = 10 let cardHorizontalPadding: CGFloat = 10 @State var courseName = "course name" @State var courseCategory = "category name" @State var progress = 66 var body: some View { ZStack { Image("default_course_bg2") .resizable() .blur(radius: 5, opaque: true) .cornerRadius(cardCornelRadius) .padding(.horizontal, cardHorizontalPadding) .frame(height: cardHeight) Color.white .cornerRadius(cardCornelRadius) .padding(.horizontal, cardHorizontalPadding) .frame(height: cardHeight) .opacity(0.1) VStack(alignment: .leading, spacing: 2) { Spacer() Text(courseName) .bold() .font(.title) .foregroundColor(.white) .lineLimit(1) .shadow(color: .black.opacity(0.5), radius: 5, x: 0, y: 2) .padding(.leading, 10) Text(courseCategory) .bold() .font(.headline) .foregroundColor(.white) .lineLimit(1) .shadow(color: .black.opacity(0.5), radius: 5, x: 0, y: 2) .padding(.leading, 10) .padding(.bottom, 5) ProgressView(value: Double(progress) / 100.0) .padding(.horizontal, 10) .padding(.bottom, 10) .accentColor(.white) .shadow(color: .black.opacity(0.3), radius: 5, x: 0, y: 2) } .frame(height: cardHeight) .frame(maxWidth: .infinity, alignment: .leading) .padding(.horizontal, cardHorizontalPadding) VStack { HStack { Spacer() Button(action: { }) { Image(systemName: "star") .foregroundColor(.white) .font(.system(size: 24).weight(.regular)) .shadow(color: .black.opacity(0.3), radius: 5, x: 0, y: 2) } .padding(.trailing, 10) .padding(.top, 10) } Spacer() } .frame(height: cardHeight) .frame(maxWidth: .infinity, alignment: .leading) .padding(.horizontal, cardHorizontalPadding) } .shadow(color: .black.opacity(0.3), radius: 5, x: 0, y: 2) } } private struct ListView: View { @Binding var courses: [CourseShortInfo] @Binding var isRefreshing: Bool @Environment(\.refresh) private var refreshAction @ViewBuilder var refreshToolbar: some View { if let doRefresh = refreshAction { if isRefreshing { ProgressView() } else { Button(action: { Task{ await doRefresh() } }) { Image(systemName: "arrow.clockwise") } } } } var body: some View { VStack { ScrollView(.vertical) { LazyVStack(spacing: 20){ ForEach(courses) { item in CourseCardView(courseName: item.shortname!, courseCategory: item.coursecategory!, progress: item.progress!) .listRowSeparator(.hidden) } } } .toolbar { refreshToolbar } } } } struct CourseListView: View { @State private var courseList = GlobalVariables.shared.courseList @State var isRefreshing: Bool = false @State var searchText: String = "" func testRefresh() async { Task { isRefreshing = true Thread.sleep(forTimeInterval: 1.5) withAnimation { isRefreshing = false } } } var body: some View { NavigationView { VStack { ListView(courses: $courseList, isRefreshing: $isRefreshing) .refreshable { print("refresh") await testRefresh() } } .searchable(text: $searchText, prompt: "Search the course") .navigationTitle("Course") .navigationBarTitleDisplayMode(.large) } } } struct CourseListView_Previews: PreviewProvider { static var previews: some View { CourseListView() } } The global variable code: import Foundation import SwiftUI class GlobalVariables { static let shared = GlobalVariables() @Published var isLogin = true @Published var courseList: [CourseShortInfo] = [ CourseShortInfo(id: 11201, shortname: "数据结构与C++程序设计", progress: 66, coursecategory: "自动化学院"), CourseShortInfo(id: 11202, shortname: "数值分析", progress: 20, coursecategory: "数学学院"), CourseShortInfo(id: 11203, shortname: "数据结构与C++程序设计", progress: 66, coursecategory: "自动化学院"), CourseShortInfo(id: 11204, shortname: "数值分析", progress: 20, coursecategory: "数学学院"), CourseShortInfo(id: 11205, shortname: "数据结构与C++程序设计", progress: 66, coursecategory: "自动化学院"), CourseShortInfo(id: 11206, shortname: "数值分析", progress: 20, coursecategory: "数学学院"), CourseShortInfo(id: 11207, shortname: "数据结构与C++程序设计", progress: 66, coursecategory: "自动化学院"), CourseShortInfo(id: 11208, shortname: "数值分析", progress: 20, coursecategory: "数学学院"), CourseShortInfo(id: 11209, shortname: "数据结构与C++程序设计", progress: 66, coursecategory: "自动化学院"), CourseShortInfo(id: 11210, shortname: "数值分析", progress: 20, coursecategory: "数学学院") ] var debugMode = true private init() { } }
Posted
by BobH2003.
Last updated
.
Post not yet marked as solved
0 Replies
440 Views
Hi, Im testing protecting iMessages using an managed ID with iOS 16.6. With a managed ID, it seems iMessages sycned to iClould is not available nor are iMessages backed up using the backup option on the device. When is this feature expected to be available? Thanks, Mohsin
Posted Last updated
.
Post not yet marked as solved
0 Replies
603 Views
Hi, Apple Team I'm really excited by a new feature account-driven Device Enrollment, and I tried it soon. The movie says It's available on iOS, iPadOS, and macOS. And just like profile-based Device Enrollment for macOS, it results in the device being Supervised, giving you the highest level of management. And for MDMs, all it takes is a few changes to support it. however my device is still not supervised after the account-driven Device Enrollment flow completes. (My trial is noted in https://zenn.dev/yusukeiwaki/scraps/dacd131de1e966 sorry in Japanese) How can we make the device supervised with account-driven Device Enrollment? Thanks,
Posted Last updated
.
Post marked as solved
1 Replies
996 Views
Hello, i am working on my project for the Swift Student Challenge and it came to my attention that the project must be built using Swift Playgrounds. I have run into an issue where I want to add multiple views to my project but it seems i am unable. How am i supposed to do this?
Posted
by Jt10594.
Last updated
.
Post marked as solved
2 Replies
662 Views
Hi there, I'm studying SwiftUI on my own, but unfortunately I'm still not able to write complex lines of code, or even code an app independently, which is very frustrating for me. I love coding, it's a way to express my creativity. I already have a lot of ideas, but I can't put them into practice because I feel like I don't have learned enough about this programming language. Can any of you suggest me some free courses or other resources that have also helped you in your first steps with coding?
Posted Last updated
.
Post not yet marked as solved
1 Replies
623 Views
I would love to learn swift. I live in South Florida, and there doesn't seem to be any places to go to learn swift either in an in-person setting or online class that I can find to be using the latest software. All the online courses i have found are pre recorded and use outdated version of xcode and swift. I am also 43 and work full-time. I want to learn the language and how to build apps as a possible new marketable skill in the future. I can't afford a full blown college admission and I won't take a student loan. I am willing to pay up to a few thousand to get the proper education. Can anyone point me in the right direction. I have minimal exposure to coding. I have tinkered with arduino, and I have an electronics background. Right now i'm following along at https://learn.codewithchris.com/enrollments
Posted
by NYvoyager.
Last updated
.
Post not yet marked as solved
0 Replies
936 Views
Hello, Apple is loosing big time and developers are leaving because of idiots responsible of calling back developers to activite their developer accounts and other idiots working in the App CRAP Store. I am one of those developers and I am sick and tired of those phone operators who where hirede from a shed in some jungle some where in a messed up country that doesnt even have iPhones. I started hating apple products although I have so many of them. Since iPhone 4. Ihave purchased every phone , ipad , watch , computger and lab top for my self , famaily and my employees. I now reached the point fo thinking seriously of abandoning Apple and all its products and start putting every piece I owned on fire every day and post it on every social media. This will be the trend amongst developers leaving Apple and the App Store , for a while and I bet Samsung and other Android products will be happy and support me. I have wasted many years of my life and huge amounts of money buying products and time learing to develop for iCrap , I think it is time to say F IT , it is not worth it , it is time to move to new better tech and better people. Thank you All , it has been misreable being an Apple customer and developer
Posted
by mshoora.
Last updated
.
Post not yet marked as solved
0 Replies
639 Views
For a few years, we have been running a consultation group with our Students for feedback on our Universtity's Student App. Over the past 18 months one of the most requested functions is their Student ID being surfaced in the Apple Wallet. I know this is available at some US institutions, but I can find nothing about this functionality being available in the UK. Has anyone got any info on this? Many Thanks Karl
Posted
by Karl-CU.
Last updated
.