Post

Replies

Boosts

Views

Activity

Reply to (Code Review) What can I do better here?
I would try this kind of approach which has also the advantage of not forcing an unwrap on value. if let value = try? .int(container.decode(Bool.self)) { self = value } else if let value = try? .string(container.decode(Int.self)) { self = value } else if let value = try? .string(container.decode(String.self)) { .... the rest should be pretty clear ... }
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21
Reply to Installing MacOS Beta on M1 Macs
This is to do a full offline install. Quite a bit more complicated than simply doing an OTA install. The simple solution is to click on the 'Install Profile' button. That will download a profile that you can double click and install on your Mac to do the OTA installation. It's how I updated my M1.
Topic: Community SubTopic: Apple Developers Tags:
Dec ’21
Reply to M1 Mac and Xcode is garbage
Nope, 13.3.1 has been smooth sailing so far on the M1. Mind you, when I installed the M1, I installed from scratch, not a migration of my old intel machine. I have seen too many people doing a migration and running into all sorts of weird issues. Just copied my personal files, did not copy the library directory and basically reinstalled programs I use. That actually was a nice cleanup.
Apr ’22
Reply to SwiftUI Previews - Disk space issue
To clean it up I do the following... I quit Xcode, delete that directory and load Xcode and previews work.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to How to give default value to TableColumn in Table
You could declare your struct like this: struct Item: Identifiable { var id = UUID() var name: String = "DefaultValue" } struct ItemTable: View { let items: [Item] var body: some View { Table(items) { TableColumn("Name", value: \.name) } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Swift 3 to 5 conversion / apple silicon MacBook
Why don't you simply update the Swift syntax and project manually?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Table not found in scope
For the time being it is only available on a Mac OS project.
Replies
Boosts
Views
Activity
Jun ’21
Reply to (Code Review) What can I do better here?
I would try this kind of approach which has also the advantage of not forcing an unwrap on value. if let value = try? .int(container.decode(Bool.self)) { self = value } else if let value = try? .string(container.decode(Int.self)) { self = value } else if let value = try? .string(container.decode(String.self)) { .... the rest should be pretty clear ... }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Error: Euro Truck Simulator 2 game
Hello, You might want to ask this question in the Steam forums since its a game you are running from steam. You also might want to remove the Xcode tag since this is not development related.
Replies
Boosts
Views
Activity
Jun ’21
Reply to Xcode 13 not loading
If I remember well, you need Mac OS 11.6 or above to use Xcode 13. You should upgrade to the latest BigSur.
Replies
Boosts
Views
Activity
Sep ’21
Reply to Downloading XCode 13
When you are in the download section, look at the more item in the upper right corner. There you should find a direct download.
Replies
Boosts
Views
Activity
Oct ’21
Reply to It seems Xcode 13.1 RC requires the unreleased macOS 12. Will this requirement also affect the official release of Xcode 13.1?
Xcode 13.1 is working on my Big Sur company provided laptop.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Macos 12.1 beta 4
Same issue over here.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Installing MacOS Beta on M1 Macs
This is to do a full offline install. Quite a bit more complicated than simply doing an OTA install. The simple solution is to click on the 'Install Profile' button. That will download a profile that you can double click and install on your Mac to do the OTA installation. It's how I updated my M1.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to Decoding JSON
Look at your data, you have declared OpenTotal.total and CurrentTotal.total as Int? The data has double values.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to M1 Mac and Xcode is garbage
Nope, 13.3.1 has been smooth sailing so far on the M1. Mind you, when I installed the M1, I installed from scratch, not a migration of my old intel machine. I have seen too many people doing a migration and running into all sorts of weird issues. Just copied my personal files, did not copy the library directory and basically reinstalled programs I use. That actually was a nice cleanup.
Replies
Boosts
Views
Activity
Apr ’22
Reply to Downloading Xcode 13.2 slow
You could try using https://github.com/RobotsAndPencils/XcodesApp to manage your downloads
Replies
Boosts
Views
Activity
May ’22
Reply to is myd82 hardware enough for swift programming ?
I have one of those and it is definitely capable of running Xcode and learning to program on it.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22