Post

Replies

Boosts

Views

Activity

Xcode committed to Remote repo while local repo is set to 'Current'
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!
0
0
219
Jul ’24
Unable to Display Text Fully in Text() SwiftUI
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!
6
0
375
Jul ’24
Context.insert() but at index 0
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
2
0
295
Jul ’24