Hello!
I am an inexperienced programmer learning swiftUI and swiftData so apologies in advance if this answer can be found elsewhere.
I want to display a list of recent transcriptions, stored in modelContainer, in reversed order. I attempted to do transcriptionsList.reversed() in a ForEach (which is in a swiftUI List), but .onDelete gets messed up as it is deleting the items as per the normal order.
The question is, is there a way when using context.insert(), that I can specify to insert at index 0? Or is there a better way of resolving this?
Thanks in advance!
The code when pasted in here appears to not be formatted correctly so I didn't include code
Post
Replies
Boosts
Views
Activity
Hi!
I am working on an app that requires displaying special characters and I have currently implemented it to just use Text() in swiftUI.
Unfortunately, it can't display the full height of the text.
Attached is one example of this happening.
I have attempted to do .linespacing() but that method doesn't work. .frame also doesn't seem to make a change. Does anyone have a solution to this?
Thanks!
Hi,
As per the title, Xcode seemed to have taken commits to remote repo instead of the local repo.
I just set up version control + GitHub connection earlier and decided to test things out with a few commits. When I perform commits, it shows up in the Remote / origin / main branch and not in the Branches / main (current). The commits only show up in Branches / main (current) is when I push.
Is this what Xcode is supposed to do? Am I correct in thinking that commits should be logged under local repo first and then gets recorded in GitHub when I push?
Any guidance would be appreciated, thanks!