Post

Replies

Boosts

Views

Activity

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 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