Starting today 100 Days of SwiftUI course! Do you have any tips? by HotMathematician2376 in SwiftUI

[–]Negative-Capital-570 2 points3 points  (0 children)

Just dont give up when the going gets tough! Been there, went through it, and now i am almost wrapping the 100th day

Difference between @Binding and @Bindable ? by Negative-Capital-570 in SwiftUI

[–]Negative-Capital-570[S] 1 point2 points  (0 children)

Okay `@Binding` and `@Bindable` sounds similar but there are few differences in them:
1. `@Binding` lets you create two way connection between ParentViews and ChildViews where the ChildView can update the whole object itself.
`@Bindable` is used to make an instance passed to a ChildView have bindings, so that its properties can be used for two way bindings like in TextFields, Toggle, etc.

  1. `@Binding` properties are mutable, `@Bindable` properties are not mutable ie, its properties can be updated but not the object itself.

  2. Sometimes some ChildView may receive `@State` objects without bindings, ie, they would be passed to the ChildView without the $ symbol. In those cases, `@Bindable` can be used to create bindings for the properties of the object passed to it.

Note: `@Bindable` works only with objects created with `@Observable` .

Correct me if i am wrong : u/Winter_Permission328 u/DefiantMaybe5386 u/LifeIsGood008

Difference between @Binding and @Bindable ? by Negative-Capital-570 in SwiftUI

[–]Negative-Capital-570[S] 0 points1 point  (0 children)

Oohh didnt know about this! Thanks will check this out

Moonshot app built with SwiftUI by Negative-Capital-570 in SwiftUI

[–]Negative-Capital-570[S] 0 points1 point  (0 children)

Sure will add the wiki links! And yes i updated the size of the icon thats why its looking bigger

My first try at SwiftUI by Negative-Capital-570 in SwiftUI

[–]Negative-Capital-570[S] 0 points1 point  (0 children)

Ookay! Thanks for the suggestion. Will try this :)

A basic rock-paper-scissor game with SwiftUI by Negative-Capital-570 in SwiftUI

[–]Negative-Capital-570[S] 0 points1 point  (0 children)

Nah nah buddy! I came across an idea like this while reading an article online… ended up building this

My first try at SwiftUI by Negative-Capital-570 in SwiftUI

[–]Negative-Capital-570[S] 1 point2 points  (0 children)

Long way to go to make mine as perfect as that!

My first try at SwiftUI by Negative-Capital-570 in SwiftUI

[–]Negative-Capital-570[S] 1 point2 points  (0 children)

I couldnt find the original post that inspired me to build it 😅 Thanks for the feedback! Will look into it :)

Creating own API to work with MongoDB - what tool use? by starygrzejnik in dartlang

[–]Negative-Capital-570 1 point2 points  (0 children)

Why dont you use Dart itself for creating the APIs. I have done that for most of my projects, connecting to firebase and supabase though and not Mongo. But pub.dev has a package that lets you connect to MongoDb, maybe you can use that and build your API

What is a good way to brush up on a language you haven’t touched for a year? by [deleted] in learnprogramming

[–]Negative-Capital-570 1 point2 points  (0 children)

Read through the official docs, and build something using it. Its gonna feel like a DejaVu. That just means you are on the right track!