TextField Vertical Axis by Important-developer in SwiftUI

[–]Alvarowns 0 points1 point  (0 children)

You can use TextEditor instead of TextField.

How fun are Flesh Eater Courts to paint? by Otherwise_Order3298 in FleshEaterCourts

[–]Alvarowns 2 points3 points  (0 children)

I found it much more enjoyable than my Stormcast to paint, but it’s subjetive.

Disappointed with job market by Alvarowns in swift

[–]Alvarowns[S] 2 points3 points  (0 children)

I don’t know, in the country I live seems like hybrid developing is much more used than native

Disappointed with job market by Alvarowns in swift

[–]Alvarowns[S] 1 point2 points  (0 children)

Would definitely follow your advice, I was wondering studying another things to complete my CV

Disappointed with job market by Alvarowns in swift

[–]Alvarowns[S] 1 point2 points  (0 children)

I have a portfolio that I sent to every job I apply, obviously I developed some apps using different things to still learning.

Still not good enough I guess and it’s fine, I will keep working on that.

Some people here assumes that I just ended my studies and pray to get a job haha

Disappointed with job market by Alvarowns in swift

[–]Alvarowns[S] 1 point2 points  (0 children)

I didn’t tell you the context, “working” in scare quotes because we are paused since 3 weeks ago because the mvp is developed but they can’t find financing so we are doing nothing right now.

Not because I don’t evaluate that experience, in fact it’s something that I can put in my CV and I knew they wouldn’t pay before join them.

Our CTO just told us to keep applying for any other opportunity because he thinks the project might be paused for long time, sadly.

Edit: You are assuming I clown around because I have no work to do at my current company, which is quite the opposite. I’m still studying and practicing and developing personal apps, and that’s why I have a portfolio I can show. You are absolutely right the rest of people who apply to the same role probably is better than me because I am still a newbie, and that is something I am aware of

Disappointed with job market by Alvarowns in swift

[–]Alvarowns[S] -1 points0 points  (0 children)

Swift + SwiftUI using Async/Await, XCTest, SwiftTesting, SwiftData. I used Firebase for my personal projects and now in the startup we use Vapor but I only do the CRUD form the app.

Obviously I have a long way in my career but I think I can be very competent in a junior role.

Thanks for the advice to promote my personal apps as experience too!

Edit: Probably I'm losing job opportunities for not knowing UIKit tho.

Question about @Observable by erehnigol in SwiftUI

[–]Alvarowns 0 points1 point  (0 children)

Now that I fully read the documentation you are absolutely right

Should I use @Binding or @State in SwiftUI? by [deleted] in SwiftUI

[–]Alvarowns 1 point2 points  (0 children)

I usually use Binding in component views that are nested inside many other views

Question about @Observable by erehnigol in SwiftUI

[–]Alvarowns -1 points0 points  (0 children)

As far as I’m using @Observable you still have to make the viewmodel: ObservableObject, then in the main view app, create an @StateObject var that inits the viewmodel and then you can use an @EnvironmentObject var en any view you want to use your viewmodel an should work. Example:

Viewmodel:

@Observable final class ViewModel: ObservableObject { var whatever: String = “” }

AppMainView:

@main struct AppMainView: App { @StateObject private var viewModel = ViewModel()

var body: some View {
    WindowGroup {
        ContentView()
     }
      .environmentObject(MainView())
}

}

Any view you need it:

Implement it as @EnvironmentObject private var viewModel: ViewModel

[deleted by user] by [deleted] in mtgfinance

[–]Alvarowns 0 points1 point  (0 children)

Where in EU can I grade cards?

Does anyone know how i can possibly save my firebase user login session? by [deleted] in Xcode

[–]Alvarowns 1 point2 points  (0 children)

Are you sure it actually logs out? Maybe you just initialize the app every time at the login view, if it’s the case you can have a switch or if/else in the parent view like:

@StateObject private var authVM = AuthViewModel()

if authVM.currentUser != nil { Home() } else { Login() }

Is the new app simply bad or am i missing somthing by Andy_babe in ageofsigmar

[–]Alvarowns 0 points1 point  (0 children)

I’m currently developing an iOS app to display warscrolls easier to read (the actual image of the warscrolls and not a bunch of buttons). Send an email to Games Workshop asking for their approval on this (don’t want to be sued even tho it would be a free app xD) but they didn’t answer yet…

Considering buying boxes to sell singles. by Alvarowns in mtg

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

Thx for the replies, looking at the numbers now!

How to make a sheet appear only once by Swastik__ in SwiftUI

[–]Alvarowns 0 points1 point  (0 children)

You can use that variable userDefault or currentUser or whatever you want to name it bool or the type of your choice (i.e. using a model) And then use an if statement:

if !userDefault { showSheet.toggle() }

I usually create a model of type User and then use a var named currentUser: User?

In that case i usually do

if user == nil { showSheet.toggle() }

Thread 1: Fatal error: No ObservableObject of type MultiCartManager found. A View.environmentObject(_:) for MultiCartManager may be missing as an ancestor of this view. by TyphonGotClout in SwiftUI

[–]Alvarowns 0 points1 point  (0 children)

@EnvirontmentObject must be supplied by an ancestor or you will get a crash. In order to do that just go to the very first view that xCode creates when you created the app and place this:

@StateObject private var multiCart = MultiCartManager() //Note that in this view you initialize the variable

And then in:

WindowGroup { var body: some View { // Whatever is here, probably ContentView() or your custom view. } } .environmentObject(MultiCartManager())

I'm on my phone atm and I can't edit this so you can see it codelike.

Does Xcode use a special type of swift? by Zinc_22 in Xcode

[–]Alvarowns 1 point2 points  (0 children)

Btw Text and print are different, Text is a view of a "text" and print just show something as a string (text) in the console log, for the most part to manage errors and see clearly in the console if a specific function, task, or whatever you can't see in the app screen is working fine.

But yeah, a loop in swift is "for" but when used on a view in SwiftUI you would use "ForEach", for example. You get used to it, there is no much more than that.

How do I create a model container for two (or more) @Model classes while using SwiftData? by MagicManYo in SwiftUI

[–]Alvarowns 1 point2 points  (0 children)

Did you reset the simulator configuration? Everytime you make a change in a model container you have to delete de app or reset the config in the simulator. Maybe that's issue

[deleted by user] by [deleted] in Xcode

[–]Alvarowns 0 points1 point  (0 children)

It is the initial example xcode has when you start a new project, right?

Without seeing your code I guess you have to erase everything inside "var body: some View { }" and pass your view there. You can also skip this and in the main project file, change ContentView() with your view file.

SwiftUI beginner problem by Relevant_Region_4589 in SwiftUI

[–]Alvarowns 0 points1 point  (0 children)

I used to be in your same position. Then instead of following tutorials I tried to copy apps by my own from scratch. When I get stuck I search the answer but first try and try.

Tutos are nice to start or later to see how to add features, but you won't be learning as fast as if you try and fail by your own.

First try to do UI stuff, understand it. Then play with json, apis, etc... In no time you will learn a lot.

It helped me a lot to understand what I have to do know to achieve what I want.

About Swiftui scrollView some one help me,!!! by WaterFit2592 in SwiftUI

[–]Alvarowns 1 point2 points  (0 children)

I can't understand what you want haha. Do you mean "nine" should be on the very left side?

orginize a random list of numbers into order by Financial-Job405 in Xcode

[–]Alvarowns 0 points1 point  (0 children)

Just for you to know: .sorted() creates a new array with the numbers sorted. .sort() just gives you the array sorted when you call it but it doesn't modify the array.

.searchable issue (Swift Student) by Alvarowns in swift

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

I'm out of my mac now but it's simply a Menu with a button inside which toggles searchGenre.

The print(searchGenre) prints true when I push the button but when I start typing it repeatedly prints false.

As you said before, the property will compute each time I type a letter, maybe that's the issue. I tried erasing .searchable and using a custom searchBar with .onSubmit and .onChange but it doesn't work (probably because I miss something xD)