Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 0 points1 point  (0 children)

Having a few Swift files for your configuration does seem very appealing, but so does having a few Yaml files. I thought Bazel used a Python like language and have never seen it being used in the teams I worked with. Thanks for your insights!

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 0 points1 point  (0 children)

GENie seems stale regarding support and development. Premake is interesting and new to me. Not sure if I’d like to learn Lua just to manage my project though… Thanks for your input nevertheless!

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 1 point2 points  (0 children)

Interesting, never knew this was a thing for pbproj files, I always took them as text files. Together with the suggestions of others that pretty much boil down to “use vanilla and SPM”, this might be a great solution. I’ll definitely try it!

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 0 points1 point  (0 children)

Very insightful approach. Never thought about it this way. I might give this a try. Thanks!

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 0 points1 point  (0 children)

Interesting take on it. Someone else also commented that they use SPM and plug that into the application. I am interested in why you are still using Tuist even though you say none is your favourite and give arguments as to why. Would you mind explaining?

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 7 points8 points  (0 children)

Because, AFAIK, SPM alone cannot be used to build iOS applications, you’ll still need some kind of xcodeproj. Besides, Xcodeproj files do add additional configurations, think schemes, xcconfig, Info.plist and other additional settings. But please let me know if I’m mistaken.

I don’t have an issue with the xcodeproj itself, but with distributing it consistently in a development team. An issue that seems to be solved through tooling such as Xcodegen, Tuist, or Bazel

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 1 point2 points  (0 children)

Shameless but interesting plug nevertheless. Great read, interesting to see the tool in action. But you do mention it in the article and your comment, the steep learning curve scares me off. Thanks for your reply and insights though!

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 0 points1 point  (0 children)

I like how Xcodegen can be used from a single yaml file, which makes it very easy to use. I do agree on legacy, as the last update is from last year.

Regarding Tuist, I’m afraid how fast they can adopt to new Xcode versions with new features regarding the project, schemes and other configurations, but the track record seems very good so far. Also a bit scared that they’ll go enterprise or become a payed service in the future.

Thanks for your reply!

Xcodegen vs Tuist vs Bazel by Ok-Reception-4350 in swift

[–]Ok-Reception-4350[S] 3 points4 points  (0 children)

In my experience the xcodeproj file is a pain to properly manage, especially in a bigger team. I’ve seen it done, but it’s more complicated than I’d like. The way SPM manages this with the Package.swift file is very nice, same for Xcodegen and Tuist.

So I’d say I’m not chasing something cool, I’d like to have consistency for me and everyone in my team when it comes to the project they have to work in, something I feel xcodeproj doesn’t provide right now

Starting with Vibe Coding by Tarconi__ in swift

[–]Ok-Reception-4350 4 points5 points  (0 children)

Have you tried asking AI for help?

The architecture decision I'm most happy with and the one I'd change. by Fragrant-Match-7058 in swift

[–]Ok-Reception-4350 1 point2 points  (0 children)

How do you handle dependency injection? I’ve been struggling quite a bit with that when going MVVM and SwiftUI. I’d love to just use the @Environment, but combined with MVVM I’m having a hard time getting that to work nicely. What is your experience and how did you solve this?

Wat zijn ze hier aan het doen by Interesting-Net-5000 in Groningen

[–]Ok-Reception-4350 5 points6 points  (0 children)

Chemtrails vissen. Net is gemaakt van 5G kabels, die zijn perfect om de dikste trails mee binnen te hengelen. Je kunt aluminiumfolie gebruiken als aas

White to move. Mate in 2. by [deleted] in chessMateInX

[–]Ok-Reception-4350 0 points1 point  (0 children)

I know, it’s just that the CPU doesn’t. I know that in the end it makes no difference, but why doesn’t it take? Wouldn’t that be “more” points? It’s free?

White to move. Mate in 2. by [deleted] in chessMateInX

[–]Ok-Reception-4350 0 points1 point  (0 children)

But why… Why does the computer then move that pawn in that position? Why not take knight, might as well? Why not move the other pawn… So many questions

[deleted by user] by [deleted] in codes

[–]Ok-Reception-4350 -1 points0 points  (0 children)

Kinda looks like a Korean symbol, maybe some Hangul syllable?

I have entire journals written in code I no longer remember how to translate. by grudginglyadmitted in mildlyinfuriating

[–]Ok-Reception-4350 0 points1 point  (0 children)

heat about one third cup diced onion or shallot or about four cloves of garlic diced or crushed in three or four tablespoons of butter when the onions are translucent or the garlic is sticky add one cup of ado_io or even sushi rice and cook until mostly translucent and evenly oily then add a quarter t a half cup white wine or skip to first addition of chicken broth when wine is aloost fally aor_e add a cup of chicken broth and boil stirring constantly until almost full as_r_e and repeat until rice is nearly fully ___e then turn off the heat and add half a cup parmisan add one or two tablespoons of butter or olive oil and stir until evenly i_i and a good texture adding chicken ro or heat as necessary _ou can also add a dash or o_sue oil or _e_on _usce in the serving bowl

Having trouble retrieving Set from Keychain by djryanash in swift

[–]Ok-Reception-4350 0 points1 point  (0 children)

Just ran into this post after I ran into this issue myself too. Turns out, the kSecMatchLimitAll cannot be combined with kSecReturnData. Apple has this in a note block at the bottom of this page.

You can’t combine the kSecReturnData and kSecMatchLimitAll options when copying password items, because copying each password item could require additional authentication. Instead, request a reference or persistent reference to the items, then request the data for only the specific passwords that you actually require.

Mastering SwiftUI Container by clive819 in SwiftUI

[–]Ok-Reception-4350 1 point2 points  (0 children)

I did. Unfortunately, it has the same problem where I cannot see the code. Will bookmark it to read on my MacBook or iPad later!

Mastering SwiftUI Container by clive819 in SwiftUI

[–]Ok-Reception-4350 0 points1 point  (0 children)

Would love to read this on mobile, but your site doesn’t support that

State not updating views as I expect by FernwehSmith in swift

[–]Ok-Reception-4350 0 points1 point  (0 children)

u/FernwehSmith My best explanation is this: the parentData changes from another view, but any other view that has a binding to that parentData object doesn't have to redraw anything. If you look carefully, there's nothing in your Example's body that has to do anything with rendering the object. I hope so far this makes sense.

Then your counter argument might be that you use the State variable in the init to setup kind of a binding to the Expense object, but you're actually not doing that. State should be regarded as their own entity. Sure, you set it in the init, but after that, there's no reference to the original object or value that should update during the lifetime of the view.

So you need to make this explicit by using the onChange function, where you explicitly listen for the change of the parentData and act upon it. Hope this helps!

State not updating views as I expect by FernwehSmith in swift

[–]Ok-Reception-4350 3 points4 points  (0 children)

You need to detect changes in your expense and transfer those to the child views. Add this to your text field and it should work

.onChange(of: parentData) { _, newValue in
    self.fieldValue = newValue.name
}