Post

Replies

Boosts

Views

Activity

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 Free coding assistant - CodeNext.ai
It's only free if you bring your own API keys, so you're still paying someone somewhere for something. I'm quite happy with the autocomplete built into Xcode. It's pretty good at what it does. I have real reservations about using LLMs (it's not AI) to write code for me, because I need to read what it's provided and confirm that's what I need my app to do. It's much easier to understand code when you write it yourself because you know what you want it to do. I'm not overly convinced by the demos on the site. I have no doubt it might be useful at some point but right now I just cannot trust an LLM to write the right code for me. (And I'm not going to be used as the source material to improve someone else's software by having to correct it when it gets something wrong.)
Feb ’25
Reply to Content blocker not removing content
I figured it out. Using :has-text(/myText/i) seems to work. But... I still think Apple need to do far better in their documentation. One example is not good enough, especially when Apple devs are writing frameworks that cover many scenarios - why not mention some of those in the docs?
Topic: Safari & Web SubTopic: General Tags:
Feb ’25
Reply to Game Center
Word salad. Either this is spam as you haven't actually asked any sort of question, or you need to re-word your question so we might be able to help you. Also, note that these forums are full of primarily random developers from around the world who write apps for APple's platforms - not actual Apple employees, so you might want to direct your question (?) elsewhere.
Topic: Community SubTopic: Apple Developers Tags:
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
Reply to Free coding assistant - CodeNext.ai
It's only free if you bring your own API keys, so you're still paying someone somewhere for something. I'm quite happy with the autocomplete built into Xcode. It's pretty good at what it does. I have real reservations about using LLMs (it's not AI) to write code for me, because I need to read what it's provided and confirm that's what I need my app to do. It's much easier to understand code when you write it yourself because you know what you want it to do. I'm not overly convinced by the demos on the site. I have no doubt it might be useful at some point but right now I just cannot trust an LLM to write the right code for me. (And I'm not going to be used as the source material to improve someone else's software by having to correct it when it gets something wrong.)
Replies
Boosts
Views
Activity
Feb ’25
Reply to How to support foregroundColor (deprecated) and foregroundStyle in watchOS 9/10?
The solution, as reiterated by @Yoorque, is to use Color.green and not just .green in foregroundStlye().
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to Content blocker not removing content
I figured it out. Using :has-text(/myText/i) seems to work. But... I still think Apple need to do far better in their documentation. One example is not good enough, especially when Apple devs are writing frameworks that cover many scenarios - why not mention some of those in the docs?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to In-app purchases - why so frustrating?
Trial and error. I managed to get through this by random restarts of the device, deleting and reinstalling the app to the device etc. Still get blank pages in the purchase screen though, but I'm past that.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to Game Center
Word salad. Either this is spam as you haven't actually asked any sort of question, or you need to re-word your question so we might be able to help you. Also, note that these forums are full of primarily random developers from around the world who write apps for APple's platforms - not actual Apple employees, so you might want to direct your question (?) elsewhere.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Feb ’25