▲ 2 r/Xcode

Gemini on Xcode, how to not write/undo write

The latest update added official Gemini support to use with the AI features. However, there doesn’t seem to be read-only and undo buttons during Gemini sessions. This leaves me worried that any planning-type query may result in actually doing the changes, with copying the current text out to counter it.

Do Gemini sessions have read-only modes and undo buttons, and I’m just holding it wrong? Or did Google/Apple leave it out?

reddit.com
u/CTMacUser — 12 days ago

How do I limit the height of some panel?

My project in the link is an attempt at a rfc822 data reader. I have a view that consists of the header section, followed by the body section. On the previews, the two areas each take up one half of the space. But e-mail programs typically have the header display only a few lines high, relegating the remainder to a scrolling view. How would I do that, hopefully in a manner that's safe with the Accessibility text size settings?

github.com
u/CTMacUser — 24 days ago

Adjusting the internal padding of a TextEditor

I'm talking about the distance between your text and the inside edges of the control. It's ridiculously thin by default.

I thought that methods like contentMargins do that, but nothing I tried actually made a change. Does this not work with TextEditor? Am I using the wrong settings? How am I holding it wrong?

reddit.com
u/CTMacUser — 27 days ago

Is there something like List/ForEach that doesn't need Identifiable elements? Could we make one?

For my use case, I don't need to change an element's value nor rearrange elements. Yes, I can mess around with using elements' collection's indices, but I don't want to explicitly do that; a wrapper is OK. Is it possible to write one? I can insist that the source of truth be a `RandomAccessCollection` to allow `Index`-based checking if needed.

reddit.com
u/CTMacUser — 1 month ago

Template for session-oriented apps?

SwiftUI, and previous Apple attempts, give frameworks for document-oriented apps. But what about things like (classic) Internet client apps (web browsers, telnet clients, FTP clients, etc.). Is there some sort of framework, or general philosophy, for creating session apps? (Could there be a 3rd-party SwiftUI framework?)

reddit.com
u/CTMacUser — 2 months ago

How do SwiftUI (Mac) apps print?

Printing has always been the "clear as mud" parts of Mac programming aids for decades. How do SwiftUI apps print, as I didn't see any printing-related APIs? Do they skip printing? Generate the appropriate PDF based off the ViewModel?

reddit.com
u/CTMacUser — 3 months ago