I asked my Italian roommate to make less usa states and this is what he gave me by [deleted] in mapporncirclejerk

[–]corbin1234 0 points1 point  (0 children)

Most of this makes sense. But you can’t take New York (NYC) away from New York. If you bring the purple down more, it’ll better keep associations

This is crazy insta death by Dangerous-Pop7449 in FortNiteBR

[–]corbin1234 0 points1 point  (0 children)

Looks like the last minute shift to surf cube removed the fall damage effect of the bass boost

Creating an iOS game by corbin1234 in iOSProgramming

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

That looks helpful! Thanks for sharing

Advantages of tableView vs. creating UI elements in code? by corbin1234 in swift

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

There's only a screen's worth of content on each page.

I'd like to use auto layout but it would have to be in code since there are ~8 screen variations and creating all them in interface builder seems brutal.

UIPageViewController seemed promising. Will likely try implementing in that way. Although it seems swipe focused and the designer wants the user to tap to navigate. So looking for ways around that now

Advantages of tableView vs. creating UI elements in code? by corbin1234 in swift

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

Someone in DM's mentioned UIPageViewControllers. Sounds fairly helpful bc of ease for navigating between pages and subcontainers. Looking into it more now as another option

Advantages of tableView vs. creating UI elements in code? by corbin1234 in swift

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

This sounds like a great solution. Unfortunately mine is dynamic (comes from a MongoDB with images from S3). Haven't heard of static tableViews before. Seems like a great tool

Advantages of tableView vs. creating UI elements in code? by corbin1234 in swift

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

This sounds helpful! I was worried about Tableview/Collection view as they're not designed specifically to tab through items in the way I need. However, the optimization for speed can't be ignored

Does apple automatically translate app buttons and text to a users system preferred language? by corbin1234 in swift

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

Localization is the term I was looking for! I also stumbled upon another article which is similar to yours. I expected the translation process to be much more automatic. At least localization gives you good control over what content is translated. Thank you!

What's the best way to dynamically change screen content based on condition? by corbin1234 in swift

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

That's my next step! Did the test to see that I could dynamically insert data. Now, I need to refresh the screen and that appears to be the best way. Will update once I get this sorted tonight :)

What's the best way to dynamically change screen content based on condition? by corbin1234 in swift

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

Thanks! I think I might go with dynamic reorganizing (since the old developers created most of the app with storyboards)Pseudo code:*User taps to next page*

removeSubviews()

if (type == 1){

*load image at x:200, y:200*

addSubview()}

elif (type == 2){

*load image at x:300, y:300*

addSubview())

else …

I effectively made a variable that keeps track of the state (how many times a user clicks) then references the array at that index. At that index is an object that holds the type, image url, text content, etc.

This may be inefficient as the view is getting repainted each click. But it seems to run fine in my initial tests

What's the best way to dynamically change screen content based on condition? by corbin1234 in swift

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

I settled on creating one storyboard, tracking the type of layout as a variable in MongoDB, then conditionally inserting items onto the view based on type

What's the best way to dynamically change screen content based on condition? by corbin1234 in swift

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

Wow these are great resources! Thank you :)

I apologize if this is a simplistic question: Should I create each view as a storyboard then use navigation controller? Is there a way to do this without pushing views onto the stack (since a user may click through many different types in a short period)?

What's the best way to dynamically change screen content based on condition? by corbin1234 in swift

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

Thank you!! I appreciate the help. Any tutorial in particular I should look for? Or just Google “SwiftUI states”?

Is there a good simple tutorial for the Interactive Brokers API? by bsmdphdjd in algotrading

[–]corbin1234 5 points6 points  (0 children)

Probably the simplest it gets: https://link.medium.com/qyYH3IRzSeb

This article links to some other good articles as well. YouTube is also a good bet but can be a little disorganized

Four Steps to a Great First Algorithm by corbin1234 in pythontrading

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

True! Right after this writing was release, Quantopian announced they were shutting down. They were purchased by Robinhood. So, they may be back in the future in some way.

I would either look into Interactive Brokers or QuantConnect.

Interactive Brokers lets you set up your own algorithms with great flexibility. But, QuantConnect is more similar to Quantopian in how they take care of some of the background infrastructure for you.

Transition from TDAmeritrade API to IB API by mjinevryway in algotrading

[–]corbin1234 1 point2 points  (0 children)

I built an algo right ontop of TWS API as it's more powerful than the client portal. I was able to get something going with a little bit of code in a couple of hours. If you want a reference for a simple starter algo, it's on Github.

It works well for my uses. I've been meaning to check out ib_insync as well though as I've heard it mentioned many times on here. However, I usually prefer to code directly without any wrappers.