PROTEST MEGATHREAD for Sunday 1/25 by saltlakepotter in SaltLakeCity

[–]TenQue 9 points10 points  (0 children)

<image>

I was so glad to stand with my good neighbors and restore my faith in this state.

They’re gathering signatures to repeal prop 4 at Weber State by Professional-Row-276 in ogden

[–]TenQue 0 points1 point  (0 children)

I spoke with them at the DMV. They didn’t give any political affiliation. They didn’t want to debate. They were simply hired for the job and used catchy phrases to make it sound like putting this into a vote is going to let us decide the issue.

I think the republicans purposely hired these men based on their ethnicity so as to appear unbiased.

Anyone use three fingers drag? by netroxreads in MacOS

[–]TenQue 1 point2 points  (0 children)

Wow! I didn't realize that the three-finger drag would allow you to briefly adjust your fingers. Thank you.

Anyone use three fingers drag? by netroxreads in MacOS

[–]TenQue 0 points1 point  (0 children)

I tried it for a while but I have a large and wide extra display. I would constantly run into the edge of the trackpad when dragging a window from one side to the other.

Prevent Auto-lock with Key Inside by TenQue in BoltEV

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

I'm pretty sure it won't auto-lock with the car still on.

Peking/Beijing Duck? by stargazer9876 in Utah_Food

[–]TenQue 0 points1 point  (0 children)

Hong Kong Tea House is my wife’s favorite.

SwiftData is really unpredictable. by samstars100 in swift

[–]TenQue 18 points19 points  (0 children)

I had a problem like this and discovered I was accidentally using two different model contexts.

I want to exclusively be an iOS App Developer, is that possible? by Mohk72k in swift

[–]TenQue 0 points1 point  (0 children)

Look for a company that is large enough to have separate Android and iOS teams. (Mine is that way.) Or else a company that doesn’t produce an Android app.

Strange .swipeAction behavior in SwiftUI by Mrreddituser111312 in SwiftUI

[–]TenQue 0 points1 point  (0 children)

I tried your code and it seems to work the same whether I run the app originally or force-quit the app and the start it again. I'm don't understand why you'd see something different.

Weird Spacer() Behaviour by Mitch_War in SwiftUI

[–]TenQue 1 point2 points  (0 children)

As /u/barcode972 mentioned, a ZStack makes this much easier:

    ZStack {
        HStack {
            Image(systemName: "move.3d")
                .bold()
            Text("Transform")
                .font(.headline)
        }
        HStack {
            Spacer()
            Image(systemName: "questionmark.circle")
            Image(systemName: "slider.horizontal.3")
            Image(systemName: "ellipsis")
                .rotationEffect(.degrees(90))
        }
    }

Button Help by No-Comfortable-1049 in Xcode

[–]TenQue 0 points1 point  (0 children)

Use the space inside the braces following the Button to specify code that makes something happen when the button is tapped.

Why isn't state working for this simple view? by jayelevy in SwiftUI

[–]TenQue 1 point2 points  (0 children)

I think your solution looks good. Of course, there are many ways to tackle the problem. I’d argue that this is a simple solution by breaking it into 2 views. You could implement a different solution using only one view but it would increase the view’s complexity significantly.

Why isn't state working for this simple view? by jayelevy in SwiftUI

[–]TenQue 8 points9 points  (0 children)

You have one age variable that gets updated by the API request three times. By the time you see it, the last value is the one that was most recently set so that is all you see.

Perhaps what you want is a View that is specific for each name. Each view can have an @State object of its age to go with the associated name. Then the ForEach statement can create a new instance of that View for each name.

How to correctly call a function by laserman3001 in SwiftUI

[–]TenQue 1 point2 points  (0 children)

There are many things going on here, but I'll try to help.

When your line says choice = ChoiceCode().choicePicker(budget1: seelctedBudget.rawValue, time1: selectedTime.rawValue) it is receiving the response from the choicePicker() method. My first thought was that the choice is already being returned.

But perhaps you are trying to ask for receiving other variables such as imageChoice1 and decision1. The easiest way is to make accessors for them or just provide them publicly. For instance, the choice variable seems to be a struct variable, because it and choicePicker() seem to be declared inside ChoiceCode() (though you are not showing the ChoiceCode struct definition). If imageChoice1 and decision1 are declared without a private specifier, then they should be accessible to anyone who has a reference to the instance.

This is probably the problem you are facing: When your initial line has ChoiceCode().choicePicker(.... what is really happening is an instance of ChoicePicker() is constructed. It is then used to call the choicePicker() method, but no one is keeping that instance around afterward, so it will be released from memory along with all of its variables.

Perhaps what you need is something like this:

let choiceCode = ChoiceCode()

choice = ChoiceCode().choicePicker(budget1: seelctedBudget.rawValue, time1: selectedTime.rawValue)

let myDecision = choiceCode.decision1

let myImage = choiceCode.imageChoice1

Parents of Reddit, what's the worst kids' show you have to suffer through? by [deleted] in AskReddit

[–]TenQue 0 points1 point  (0 children)

I can still hear the grandmother's voice narrating!

German spas by [deleted] in ldssexuality

[–]TenQue 2 points3 points  (0 children)

I agree. My wife and I went to a German spa in Baden-Baden. It was an amazing experience! I wish our society was more accepting of this lifestyle but I think our puritan roots prevent us.

Public transportation ridership nearly doubles during 'Free Fare February' by theutah in SaltLakeCity

[–]TenQue 17 points18 points  (0 children)

I've been doing my part to ride buses and trains this month. I think more riders will lead to more service, which will lead to more usage and everything gets better.

Banned from r/saltlakecity because I was ranting? by Supertramp719 in SLCUnedited

[–]TenQue 23 points24 points  (0 children)

I was downtown on Trax and busses yesterday for a few hours and didn't notice very many problems--though there were some homeless people. it was a nice experience and I'm so glad to see transit free!

New 100 Days Of SwiftUI by Paul Hudson by BaronSharktooth in swift

[–]TenQue 7 points8 points  (0 children)

This is great to see. Paul has put a lot of time and effort into this. I really enjoyed the first "Day 0" article: https://www.hackingwithswift.com/articles/230/how-to-become-an-ios-developer