Post

Replies

Boosts

Views

Activity

Looking for opinions….
Hi, I’m running out of hard disk space on my Mac mini and am considering moving all of my projects to iCould. But I need to know if anyone else has done this and if iCloud would be a viable option working with Xoode and if said idea would be able to keep up with any update(s) that I’d make to an app. Thank you, Dan Uff
1
0
107
2w
Not sharing files with Xcode 16 Beta?
Hi, I am creating an app that would be able to share information between iPhone, iPad, etc. I created a new target and went to the Target Membership area and noticed the attachment instead of the list of files that the app can share between the current target and a new one. Is there another way to do it? Thanks, Dan Uff
1
0
460
Jul ’24
SwiftData: Unable to delete (Xcode 16)
I am using Xcode 16 and am doing a future app with SwiftData. I have the data in a List. When I try to delete a row, it deletes and seems to save the deletion. But when I list the data again, what I deleted comes back. Here's the code: { for index in indexSet { let chat = chatLog[index] modelContext.delete(chat) // do { // try modelContext.save() // // } catch { // // print("Error saving: \(error)") // // } } } CHAT: Is a variable to hold the data. CHATLOG: The variable in the List. Thank you. Dan Uff
4
2
693
Jun ’24
Vision Pro Simulator Error
Hi. I am getting an error each time Xcode installs or upgrades itself. The simulator goes through the download process and them I get another error that says "Disk Image Not Available". I got this with the Beta over the summer and now. Anyone else have this problem? Thanks, Dan Uff
0
0
322
Feb ’24
Apple TV - ITMS 90013 - Corrupt Image File
Hi, I am receiving the above error after trying to upload it to the App Store. I would know what to do IF Xcode would provide WHICH file is corrupt. The error reads: ITMS-90013: Corrupt Image File - The image file $[IconName] appears to be corrupt. Again, I would know what to do if I had more information about which file(s) to fix. Could anyone FROM APPLE help me or give me a hint? Thanks, Dan Uff
2
0
633
Jan ’24
AppleTV - ITMS 90013 - Corrupt image file
Hi, I am receiving the above error after trying to upload it to the App Store. I would know what to do IF Xcode would provide WHICH file is corrupt. The error reads: ITMS-90013: Corrupt Image File - The image file $[IconName] appears to be corrupt. Again, I would know what to do if I had more information about which file(s) to fix. Could anyone FROM APPLE help me or give me a hint? Thanks, Dan Uff
0
1
1k
Jan ’24
Unable to install Vision Pro Simulator
Hi, I'd like to work on adding support for an app for the Vision Pro, but am unable to install the simulator. Xcode tries to install it but comes up with a blank error box. When I try and manually add it in the Devices & Simulators section, the Vision Pro isn't listed. Is anyone else having this problem? Xcode Version 15.0.1 (15A507) Thanks, Dan Uff
2
0
848
Nov ’23
List with Sections output weird results?
Hi, This is my first time using a list with different sections. I am using an example from a documented video that I found on the Internet. I'm getting some weird results. Could someone point me in the right direction? Here's the code: import Foundation struct History: Identifiable, Hashable { var id = UUID() var hist: String } struct Titles: Identifiable, Hashable { var id = UUID() var Titl: String } struct Library: Identifiable, Hashable { var id = UUID() var lib: String } // Main Menu Options: var commandsA: [History] = [History(hist: "History"), History(hist: "Overview")] var commandsB: [Titles] = [Titles(Titl: "Title 1: Employment"), Titles(Titl: "Title 2: Public Service" ), Titles(Titl: "Title 3: Public Accommidations"), Titles(Titl: "Title 4: Telecommunication"), Titles(Titl: "Title 5: Miscellous")] var commandsC: [Library] = [Library(lib: "2010 Accessibilty Standards"), Library(lib: "2008 ADA Amendments"), Library(lib: "Phone Numbers"), Library(lib: "More Information")] struct MainMenu160: View { @State private var path = NavigationPath() var body: some View { NavigationStack(path: $path) { List { Section(header: Text("Overview")) { ForEach(commandsA) { secA in HStack { Image(systemName: "folder") Text("\(secA.hist)") }.font(.system(size: 20, weight: .bold, design: .rounded)) } } } List { Section(header: Text("Titles:")) { ForEach(commandsB) { secB in HStack { Image(systemName: "folder") Text("\(secB.Titl)") }.font(.system(size: 20, weight: .bold, design: .rounded)) } } } List { Section(header: Text("Library:")) { ForEach(commandsC) { secC in HStack { Image(systemName: "folder") Text("\(secC.lib)") }.font(.system(size: 20, weight: .bold, design: .rounded)) } } }.navigationTitle("ADA 1990") .navigationBarTitleDisplayMode(.automatic) } } struct MainMenu160_Previews: PreviewProvider { static var previews: some View { MainMenu160() } } } And here's the output:
1
0
566
Feb ’23
SwiftUI: Extra line in NavigationStack
Hi, I know its a simple thing, but I cannot figure it out. I have a list of items going to another view using NavigationStack. Everything seems fine, but when I go into the list, I have two back buttons, the title is shifted down, and its just annoying. Thanks for the help. Here's my code: struct ImportantNumbers: View {      var body: some View {          NavigationStack {       List(INDDataService.getAll(), id: \.id) { data in                  NavigationLink(value: data)         {                       HStack {                          Image(systemName: "circle.fill")               .foregroundColor(.green)                          Text(data.name)               .fontWeight(.bold)                                         .navigationTitle("Important U.S. ADA Numbers")               .navigationBarTitleDisplayMode(.inline)           }                            .navigationDestination(for: INDData.self) {  data in                                  Spacer()                                  Image(data.logo)                   .resizable()                   .frame(width: 200, height: 200)                                  Spacer()                                  Text(data.phone)                   .font(.system(size: 30, weight: .bold, design: .rounded))                                  Spacer()                                    .navigationTitle(data.name)                                }                                                    }                               }       }            }        } struct ImportantNumbers_Previews: PreviewProvider {     static var previews: some View {         ImportantNumbers()     } }
2
0
812
Dec ’22
iOS 16, AVFoundation, Text-to-Speech
Hi, I've been having problems with the AVFoundation and getting text to speech to work with iOS 16. I have a button which activates the text to speech that says the time. It worked with iOS 15 but not 16. Anyone else having a problem? Here's the code: (Note: dtd is coming from another Swift file). import Foundation import AVFoundation struct SUINightMode: View {      @ObservedObject var dtd = DateTimeData()      @Environment(\.presentationMode) var presentationMode      @State private var date = Date()        var body: some View {              ZStack {                  Color.black                    .ignoresSafeArea()                  GeometryReader { cen in                    VStack (alignment: .center) {                  Text("\(dtd.timeString(date: dtd.date))")             .foregroundColor(.green)           .font(.system(size: 120, weight: .bold, design: .rounded))           .alignmentGuide(VerticalAlignment.center, computeValue: { $0[.bottom] })                               .position(x: cen.size.width / 2, y: cen .size.height / 2)           HStack(alignment: .center) {           Text("\(dtd.dayString(date: dtd.date)), ")             .foregroundColor(.green)             .font(.system(size: 50, weight: .bold, design: .rounded))             Text("\(dtd.dateString(date: dtd.date))")             .foregroundColor(.green)           .font(.system(size: 50, weight: .bold, design: .rounded))     }     }       Image(systemName: "speaker.wave.3.fill")           .resizable()           .foregroundColor(.green)           .frame(width: 50, height: 30)           .padding(10)           .position(x: 120, y: 40)           .onTapGesture {             let synthesizer = AVSpeechSynthesizer()             let speakTime = AVSpeechUtterance(string: "The time is, \(dtd.timeString(date: dtd.date))...., today is \(dtd.dayString(date: dtd.date)) \(dtd.dateString(date: dtd.date))")             synthesizer.speak(speakTime)           }       Image(systemName: "arrow.left")           .resizable()           .foregroundColor(.green)           .frame(width: 45, height: 30)           .position(x: 40, y: 40)       .onTapGesture {         presentationMode.wrappedValue.dismiss()       }       .onAppear(perform: {let _ = self.dtd.updateTimer})       }     }       } } struct SUINightMode_Previews: PreviewProvider {     static var previews: some View {       if #available(iOS 15.0, *) {         SUINightMode()           .previewInterfaceOrientation(.landscapeRight)       } else {         // Fallback on earlier versions       }     } }
2
0
1.1k
Oct ’22