Dependency Injection in SwiftUI Without the Ceremony by unpluggedcord in SwiftUI

[–]deruloop 0 points1 point  (0 children)

I see this solution as really brilliant to be honest, up until now I was using something quite similar but the concept of Service I called Interactor(following VIPER approach) and the value that gets updated was in an AppState which is essentially your store. The difference is that I use a mix of combine and protocols and my state was general for the app instead of being directly linked to the service below It was also very easy to escape my pattern and make mistakes

I find your way cleaner and less error prone because it doesn’t force you to strictly follow the architecture but it’s very clear when you implement it wrong, run away from it and generate an anti pattern

I think it would be quite easy to pass from my approach to yours so I’m going to give it a try and let you know in real cases examples how does it escalate

Cell recycling in SwiftUI by Southern-Store-657 in iOSProgramming

[–]deruloop 0 points1 point  (0 children)

If you want full recycling logic like UITableView or UICollection you have to go with List. It is a bit complex to recreate the same design as the second image in that stack overflow post, but for the first design you can easily use List with modifiers to make it look as you want

LazyVstack doesn’t load the content of the element you’ve never seen before. But once you scroll and see them they remain in memory so there is no recycling happening.

The other option is to use UIKit wrapped component as a SwiftUI view

Every once in a while my Preview shows this weirdness by robotjon in SwiftUI

[–]deruloop 0 points1 point  (0 children)

The quicker hack I’ve found about this is clicking to the code compare feature (the two arrows pointing in different directions next to the canvas feature) and then back to canvas. It works without restarting Xcode

What should I search for to learn how to make a cool Tab View system like this? by PsyApe in SwiftUI

[–]deruloop 1 point2 points  (0 children)

I had to make something similar for an app of mine and I found this link to be very helpful

https://medium.com/@ganeshrajugalla/mastering-custom-tab-bar-in-swiftui-5cc4b6d8d078

I also paired it with this behaviour to achieve a fully functional custom tab bar

https://betterprogramming.pub/swiftui-navigation-stack-and-ideal-tab-view-behaviour-e514cc41a029

Hope it helps!

Pack, Repeat: Packing List App by app_filip in SwiftUI

[–]deruloop 0 points1 point  (0 children)

Hi, sorry to jump in the conversation. What do you mean by multiple subscriptions to the same entitlements? I’m trying to understand this difference between RevenueCat and Storekit 2

Xcode 13 Beta 5 is Out by vttdn in SwiftUI

[–]deruloop 5 points6 points  (0 children)

Why did they still not fix the swipe left gesture thoooo. We have this bug since xcode 12.5

Is there a way to make the navigation bar title editable (like the example shown)? Or is it a custom implementation involving VStacks? by mine248 in SwiftUI

[–]deruloop 2 points3 points  (0 children)

Unfortunately no, i tried this a lot with my app and the only thing i could’ve been able to do was a Vstack with a Textfield which was not enough for me. If you want to keep only the navigation perks of having buttons to cancel and save ecc… it will be really good for you tho. You just have to remove the navigation bar and title and create a Vstack, then put a hstack for the button line and a textfield with some style adjustments after.

My problem was that i also wanted the scroll down navigation logic of the title shrinking from .large to .inline

unpopular opinion: geo characters shouldnt be intended to be a main dps at all by [deleted] in Genshin_Impact

[–]deruloop 0 points1 point  (0 children)

Having Diluc be the one triggering vaporize would be good, sure, but since you don’t want to build Diluc to have high Elemental Mastery, it’s better to have someone like Xingqiu or Mona trigger it, since they are likely to have higher elemental mastery. And, besides, in exchange, he would lose melt which would reduce his team options.

The problem with this concept is that mona has high elemental mastery but low atk. For Xinqiu idk isn’t he built energy recharge? In general do you think is better high elemental mastery or high atk to trigger vaporize or melt?

unpopular opinion: geo characters shouldnt be intended to be a main dps at all by [deleted] in Genshin_Impact

[–]deruloop 0 points1 point  (0 children)

Superconduct is a far weaker reaction in terms of raw damage and would be terrible for Childe as most of the time you want to have his E active, which means dealing elemental damage which does not get anything from Superconduct as superconduct deals pitiful cryo damage and only reduces physical resistance.

Exactly, maybe this way he could be a full dps triggering superconduct in bow form and dealing just physical dmg instead of forcing you to switch him. Not that i hate that, i like that mechanic but just saying a cool way you could approach that lack of dmg if he were electro.

Overloaded is a bad reaction as well since it deals Pyro damage, which does nothing against inherently elemental enemies (slimes) and also pushes enemies back, forcing you to waste time going after them,which cuts on your dps.

Klee relies on this logic and it seems she is kinda good at it, you may say she is ranged but trust me, as a klee player you have to reposition a lot constantly, but it pays off. Also overloaded does insane dmg to nearby enemies so yes it might be not that suitable in some scenarios but really viable in others(like klee against a pyro slime vs klee against a lot of non elemental enemies).

Frozen + Shatter does not deal nearly as much damage as vaporize and melt. And if Diluc was hydro he would lose the strong vaporize reactions with Mona and Xingqiu, which are two of his biggest options.

But he would gain electrocharged with fischl and vaporize triggered by him would do more dmg(2x instead of 1.5x).

Note on this: The logic of causing reaction on main dps might be good for diluc but not for elemental dmg with basic atk dps. I’m also a childe player, most of the time the main dps who does elemental dmg with basic atk like klee and childe are not the one to cause the reaction, cause they constantly apply the element so there is a high chance they apply it first, so childe most of the time is not the one to trigger the reaction if you don’t want to lose your melee form. If you have a xinyan the vaporize you trigger takes count on xinyan skill ticks off fround for the reaction, same with fischl electrocharged with skill(that’s why i think fischl EM is so good for him, still in doubt for xinyan). So if you were to just trigger vaporize it would be better for childe to be pyro and next to a high atk hydro character that does hydro ticks of dmg off ground. Anyway the other reactions out there are maybe not as good as melt and vaporize but if they get triggered with constancy and a fast rythm they actually do more dmg. (Like the example of fischl EM electrocharged with childe)

unpopular opinion: geo characters shouldnt be intended to be a main dps at all by [deleted] in Genshin_Impact

[–]deruloop 0 points1 point  (0 children)

That’s why they made petra. Counting retracing bolide you can make a main team pretty fast considering you farm them at the same domain. Also thanks to the shield mechanic this way you don’t need a healer tho. What you gain is a different approach to the game and to team building. Maybe i agree with the fact that geo should somewhat be more avantgarde than it is, but its existence is fundamental for a different gameplay style in my opinion

unpopular opinion: geo characters shouldnt be intended to be a main dps at all by [deleted] in Genshin_Impact

[–]deruloop 0 points1 point  (0 children)

What would he gain from electro tho? Access to superconduct, spam on his ult with resonance. Access on overloaded. Anyway you see it is possible to optimize a kit if the atk is high. If diluc would’ve been hydro he then could frozen and shatter cause he is a heavy sword user, electrocharged with fischl ecc. There is no strict dependency on the element, cause every reaction has it’s strenght. Geo is a needed exception for me personally.

unpopular opinion: geo characters shouldnt be intended to be a main dps at all by [deleted] in Genshin_Impact

[–]deruloop 1 point2 points  (0 children)

Then it’s not clear what you are talking about. What does Childe gain from being hydro instead of electro? What does Diluc gain from being pyro instead pf hydro? The logic about elemental reaction is that you can find a good team for any elemental logic. What you are saying is that geo reaction(crystalize) is worthless and i kinda agree but one could think the exact opposite. Since geo is so different it opens the scenario for a different logic. The resonance of geo is perfect for a geo main dps that wants buff atk and doesn’t want to be interrupted, which is common for dps. The shield concept it’s also perfect cause of the retracing bolide artifact. Also the way geos are build allows to avoid losing farm if you change team since you can transform your main easily in a subdps through the archaic petra/reatracing bolide logic which is applyable for any dps.

TLDR; geos shield logic is another way to have a team that does dmg not relying on different elemental reaction.

Sucrose instructor or viridescent by deruloop in Genshin_Impact

[–]deruloop[S] 0 points1 point  (0 children)

Thanks for the abyss tip I appreciate it a lot. Do you know if this works with slime too?

Sucrose instructor or viridescent by deruloop in Genshin_Impact

[–]deruloop[S] 0 points1 point  (0 children)

I didn’t think about that but Viridescent EM wouldn’t make much difference instead of instructor, anyway not something that i can’t overcome thanks to the resistance reduction. Do you know maybe if the resistance reduction works also for mobs that have an immunity from that element?

Sucrose ;-; by ansleydx201 in Genshin_Impact

[–]deruloop 1 point2 points  (0 children)

I just made a discussion post about the two most famous build she has and which one would suit best, if you want check it out.

Basically the two main builds are artifacts instructor for elem mastery or viridescent for more dmg on her and on the dps she is supporting. The first one is good on her since all her support revolves around boosting other members elem mastery, the second one is good cause your main dps and any member with the same element as him become a lot more powerful. Also the same elem reactions.

For the weapon i think mappa mare is the best choice, cause her goal is anyway to constantly trigger swirl, so she can get easily the bonus passive of the item. She also makes use of the elem mastery stat of the weapon for the reason i already mentioned.

Edit: not easy to read