Post

Replies

Boosts

Views

Activity

Reply to Updated to @Observable, now the total not updated on each keystroke
If you fixed it, you should mark your answer as accepted so others know that there's a fix for the issue without having to read through the replies. Secondly, a lot of wordy paragraphs with code interspersed isn't easy to read if you have issues with your code, so it would be appreciated if you would add a chunk of code to explain the initial issue and then the fixed code. Maybe not for this post, but certainly for future ones. Thanks!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’25
Reply to La version IOSOS 18.3.1 PARA IPAD AIR 5 GENERACION NO ESTA DISPONIBLE
New versions of the SDK generally come out with a new version of Xcode. Since the latest version of Xcode available is 16.2, and it includes the SDKs for iOS 18.2 and iPadOS 18.2, you cannot test against 18.3 in the Simulator. Either test on a device or wait for a version of Xcode to be released that includes the SDKs for 18.3. I realise English isn't your first language, but I have no idea who "they" are in "they are testing". "I have already added logs in different parts of the application, but in the files that you shared with me no log appears." I'm assuming the files you reference are crash logs? If your application crashes in 18.3 can't you upgrade your iPad Air to 18.3 and use the Simulator to test 18.2? That way you would definitely have an 18.3 version to test with.
Feb ’25
Reply to Email icons
The most recent update of what? These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. These forums are not where Apple's actual developers chat about features. If you have a suggestion, you should raise it at: https://www.apple.com/feedback/
Topic: Design SubTopic: General Tags:
Feb ’25
Reply to Ubuntu-Asahi Dual Boot
Sorry, but this isn't the place for such questions. These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Feb ’25
Reply to İCloud
I don't know any other forums where they have to keep putting out messages like this. Perhaps you should spend a few minutes changing the sign-up process so you make it more than clear what these forums are for and what they are not for?
Feb ’25
Reply to Xcode Open File from Previous Project for Reference
Easily fixed... Open your first project. Then grab the top bar of the Xcode window, anywhere in the plain grey area, and start dragging the window around, then press F3 and you should see the Mission Control desktops at the top of the screen. Drag your Xcode window to the right of the existing "Desktop" item. This creates a new space for Xcode and shows your project full screen. Now, back on the original Desktop space, open your second project. Grab the window again. Press F3 again. This time, drag it on top of the "Xcode" space. You'll see it becomes a split screen full screen space. All done.
Feb ’25
Reply to How do I add an "insert" feature like UITableViewCell.EditingStyle in SwiftUI?
I'm not sure if there's a built-in way of doing it, but you can add swipeActions to a row, then perform an action based on the button tapped. var body: some View { List { ForEach(etc.) { element in RowView(rowData: element) .swipeActions(edge: .leading, allowsFullSwipe: false) { MySwipeButtonsView(rowData: element) } } } } struct MySwipeButtonsView: View { var rowData: RowDetails // The type for the row data var body: some View { Button { insertRow() // Insert a row above/below in your array, and SwiftUI should redraw the list if you've set up an observable model etc. } label: { Label("", systemImage: "plus") .symbolRenderingMode(.palette) .labelStyle(.iconOnly) .tint(Color.green) .foregroundStyle(Color.white) } } }
Topic: UI Frameworks SubTopic: SwiftUI
Feb ’25
Reply to Getting Error: Type '()' cannot conform to 'View'
Guessing the issue is here: .sheet(isPresented: $showModal) { if let date = selectedDate { DateSelectionModal(selectedDate: date) } } because you're not returning a view - you're doing an if statement. You should really determine whether the sheet should be displayed and then set the showModal value. So, in your code, change this: .onLongPressGesture { selectedDate = calendarDate showModal = true } to this: .onLongPressGesture { selectedDate = calendarDate if let date = selectedDate { showModal = true } }
Topic: UI Frameworks SubTopic: SwiftUI
Feb ’25
Reply to After building the project, the search form does not allow typing, but pasting works.
It works here. The only difference I had to make on my side was to comment out this, because you didn't supply it: .navigationDestination(isPresented: $isSearching) { SearchResultsView(searchQuery: searchText) } You might have to just comment out a 'thing' at a time, i.e. the .textFieldStyle, then the .frame etc. How about trying it on a different Simulator device. For Cmd + K, it's just the "Toggle Software Keyboard" option in the "I/O" > "Keyboard" menu. Try going there directly.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’25
Reply to Error creating the CFMessagePort needed to communicate with PPT. Type: Error | Timestamp: 2025-02-10 13:43:41.450089-06:00 | Process: junk removal app | Library: UIKitCore | Subsystem: com.apple.UIKit | Category: PPT | TID: 0xf185c
I get this in Xcode 16.2 in my apps for iOS 18.2. PPT is the Performance Power Tools, but I believe this is an internal error from the frameworks and not something you're doing, as you can get this from a completely new project in Xcode. You can ignore it.
Topic: Design SubTopic: General
Feb ’25
Reply to Updated to @Observable, now the total not updated on each keystroke
If you fixed it, you should mark your answer as accepted so others know that there's a fix for the issue without having to read through the replies. Secondly, a lot of wordy paragraphs with code interspersed isn't easy to read if you have issues with your code, so it would be appreciated if you would add a chunk of code to explain the initial issue and then the fixed code. Maybe not for this post, but certainly for future ones. Thanks!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to La version IOSOS 18.3.1 PARA IPAD AIR 5 GENERACION NO ESTA DISPONIBLE
New versions of the SDK generally come out with a new version of Xcode. Since the latest version of Xcode available is 16.2, and it includes the SDKs for iOS 18.2 and iPadOS 18.2, you cannot test against 18.3 in the Simulator. Either test on a device or wait for a version of Xcode to be released that includes the SDKs for 18.3. I realise English isn't your first language, but I have no idea who "they" are in "they are testing". "I have already added logs in different parts of the application, but in the files that you shared with me no log appears." I'm assuming the files you reference are crash logs? If your application crashes in 18.3 can't you upgrade your iPad Air to 18.3 and use the Simulator to test 18.2? That way you would definitely have an 18.3 version to test with.
Replies
Boosts
Views
Activity
Feb ’25
Reply to Email icons
The most recent update of what? These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. These forums are not where Apple's actual developers chat about features. If you have a suggestion, you should raise it at: https://www.apple.com/feedback/
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to Ubuntu-Asahi Dual Boot
Sorry, but this isn't the place for such questions. These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Feb ’25
Reply to Xcode Open File from Previous Project for Reference
Yes, clearly you can't be in full screen mode already when you want to drag the window around.
Replies
Boosts
Views
Activity
Feb ’25
Reply to İCloud
I don't know any other forums where they have to keep putting out messages like this. Perhaps you should spend a few minutes changing the sign-up process so you make it more than clear what these forums are for and what they are not for?
Replies
Boosts
Views
Activity
Feb ’25
Reply to External soundbar not playing nice with TV
This is nothing to do with third-party developers (i.e. not Apple employees) who write apps for Apple's platforms, which is what these forums are for. You're in the wrong place. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Feb ’25
Reply to Xcode Open File from Previous Project for Reference
Easily fixed... Open your first project. Then grab the top bar of the Xcode window, anywhere in the plain grey area, and start dragging the window around, then press F3 and you should see the Mission Control desktops at the top of the screen. Drag your Xcode window to the right of the existing "Desktop" item. This creates a new space for Xcode and shows your project full screen. Now, back on the original Desktop space, open your second project. Grab the window again. Press F3 again. This time, drag it on top of the "Xcode" space. You'll see it becomes a split screen full screen space. All done.
Replies
Boosts
Views
Activity
Feb ’25
Reply to Error while validating the mobile app
Yes, but what is the Hermes framework? If YOU wrote it then YOU should update its Info.plist file to include the MinimumOSVersion key like the error is telling you. If YOU didn't create it, then you need to speak to the Hermes people and ask them why it's failing.
Replies
Boosts
Views
Activity
Feb ’25
Reply to How do I add an "insert" feature like UITableViewCell.EditingStyle in SwiftUI?
I'm not sure if there's a built-in way of doing it, but you can add swipeActions to a row, then perform an action based on the button tapped. var body: some View { List { ForEach(etc.) { element in RowView(rowData: element) .swipeActions(edge: .leading, allowsFullSwipe: false) { MySwipeButtonsView(rowData: element) } } } } struct MySwipeButtonsView: View { var rowData: RowDetails // The type for the row data var body: some View { Button { insertRow() // Insert a row above/below in your array, and SwiftUI should redraw the list if you've set up an observable model etc. } label: { Label("", systemImage: "plus") .symbolRenderingMode(.palette) .labelStyle(.iconOnly) .tint(Color.green) .foregroundStyle(Color.white) } } }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Feb ’25
Reply to Getting Error: Type '()' cannot conform to 'View'
Guessing the issue is here: .sheet(isPresented: $showModal) { if let date = selectedDate { DateSelectionModal(selectedDate: date) } } because you're not returning a view - you're doing an if statement. You should really determine whether the sheet should be displayed and then set the showModal value. So, in your code, change this: .onLongPressGesture { selectedDate = calendarDate showModal = true } to this: .onLongPressGesture { selectedDate = calendarDate if let date = selectedDate { showModal = true } }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Feb ’25
Reply to Error while validating the mobile app
What's the hermes framework? Looks like you should try and find a newer version of it because it seems to be an older version that's missing that Info.plist value. Is there an Info.plist in that framework?
Replies
Boosts
Views
Activity
Feb ’25
Reply to cell.textLabel?.text breaking if a number value is in an array
This looks like a great choice for an array of tuples, and I'd create it like this: var quotes: [(quote: String, order: Int)] = [ ("I live you the more ...", 1), ("There is nothing permanent ...", 2), ("You cannot shake hands ...", 3), ("Lord, make me an instrument...", 4) ] Text("\(quotes[0].order)") And you can get the quote String by accessing quotes[0].quote.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to After building the project, the search form does not allow typing, but pasting works.
It works here. The only difference I had to make on my side was to comment out this, because you didn't supply it: .navigationDestination(isPresented: $isSearching) { SearchResultsView(searchQuery: searchText) } You might have to just comment out a 'thing' at a time, i.e. the .textFieldStyle, then the .frame etc. How about trying it on a different Simulator device. For Cmd + K, it's just the "Toggle Software Keyboard" option in the "I/O" > "Keyboard" menu. Try going there directly.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to Error creating the CFMessagePort needed to communicate with PPT. Type: Error | Timestamp: 2025-02-10 13:43:41.450089-06:00 | Process: junk removal app | Library: UIKitCore | Subsystem: com.apple.UIKit | Category: PPT | TID: 0xf185c
I get this in Xcode 16.2 in my apps for iOS 18.2. PPT is the Performance Power Tools, but I believe this is an internal error from the frameworks and not something you're doing, as you can get this from a completely new project in Xcode. You can ignore it.
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Feb ’25