Post

Replies

Boosts

Views

Activity

Cannot select TSV file from file Importer
Hello there, everyone. I have been having problems recently with add a file type as a supported type to my app that I intended to utilize as a way to allow users to share directly from my app, but things are not going so well. Currently, the application supports JSON and QIF imports, but Air dropping from the app is not supported unless I utilize the proxy transfer representation, so I decided to add TSV support and got the stuff responsible for rendering my data as a TSV string and parsing a TSV string to my model to work. However, the reading of TSV files seems to only work when sending the TSV file over via AirDrop and I cannot select the TSV file when using the file importer without implementing it as if it were a custom format, which should be unnecessary because it is a system defined type and I am utilizing the UTF-8 type in the plist file. Does anybody what I need to do to fix this?
0
0
260
May ’23
SwiftUI Table Modifying Data when Scrolling
Hey there everyone, I finally got a multicolumn table implemented with what I wanted after looking through the code sample provided here, but now I am having some issues with how the data is displayed. At first, everything displays correctly and fields update as they should, but whenever I scroll, the data does not present it itself as it should, in other words cells that should have remain one value end up changing or zeroing out, which affects the column holding a running total. The application, which is a checkbook ledger application, holds its data in an SQLite database and when I view the database, the values there have changes as well, which forces me to import a previous SQL dump to get everything back, only to experience the issue again. When I go back to an old version of the application, which has a hideous UI, however, scrolling does not modify anything. Does anybody know how to deal with this little problem? If you would like to see what I have already, here is the source code as it currently is. https://github.com/bryceac/BCheckbook/tree/macTable
2
0
571
Jul ’22
SwiftUI TableColumn with Custom Widget not able to Bind
Hello, everyone. I am having some troubles fixing up a UI in a mac app of mine, that just looks horrible for my liking, seeing as I was able to get closer to the interface I wanted with GTK than SwiftUI. When I go looking through the docs, I see that I can get 2 of the three specific types of columns I need, which are as follows: 1 column where cells are date pickers 1 column with check boxes 1 column with a combo box As this application is supposed to be a checkbook ledger app that can import data from QIF and JSON, and has been registered in a way that users can import data on iOS directly via Air Drop, there will be a column that cannot be edited, but all other fields are editable, with the combo box column allowing users to enter in a new category type or selecting an existing category. However, my problem right now is when I go to implement either or the two easiest columns to think about, I cannot seem to access the value I need because the closure, which looks like this: TableColumn("Date", value: \Record.event.date) { record in         DatePicker("", selection: $record.event.date, displayedComponents: [ .date])       } Says that record is not found in scope, but seeing as the record variable is supposed to refer to RowValue, according to this and many of the other initializers for a column with dates, I should not be getting this error. When I actually go about to supply a closure for the content argument, the autocompletion in XCode gives me an underscore, which makes it difficult to create a binding because I have no way to access the date. How should I go about fixing this?
2
0
1.2k
May ’22