|
Plorkyeran posted:Using the storyboard part of storyboards seems to be pretty rare, but ignoring segues and using a storyboard per screen certainly isn’t. Would there be a reason to do this over using xibs?
|
# ¿ Jun 20, 2020 03:13 |
|
|
# ¿ May 2, 2024 13:39 |
|
Glimm posted:Static UITableViews? Maybe that's possible with xibs now. SaTaMaS posted:If you needed a customized UINavigationItem Fair points. I've never needed to use static TableViews and do nav stuff programmatically.
|
# ¿ Jun 20, 2020 17:42 |
|
Still pretty confused and intimidated by scroll views. Is there any good resource that'll finally make them click? and are the new frame and content layout guides the way to go? Seen a few different resources that mention different ways to set them up
|
# ¿ Jun 21, 2020 01:57 |
|
pokeyman posted:Start with these WWDC videos (don't mind that they're a few years old): Thanks! I'll check them out when I get some time
|
# ¿ Jun 23, 2020 16:51 |
|
frogbs posted:I realize i'm just getting started with Swift, so everything is going to have a learning curve, but i'll be damned if I can't wrap my head around using Codable to parse even moderately complicated/nested JSON. This can be a big help for creating your data models lord funk posted:Yeah good luck. I just went through this a few weeks ago, and was surprised at how difficult heterogenous arrays were to encode / decode. Yeah I recently had to deal with an endpoint that spat out a bunch of different variations and it was a nightmare
|
# ¿ Sep 9, 2020 18:54 |
|
Why new collection view over table view?
|
# ¿ Dec 13, 2020 18:11 |
|
Made a few changes to make it buildSwift code:
Swift code:
|
# ¿ Jul 6, 2021 16:41 |
|
pokeyman posted:Either I've been missing out or that button action still won't do anything. Gotta make a method that calls the passed-in block. Yeah I just quickly mocked it up with some xibs and you'll need something like Swift code:
|
# ¿ Jul 6, 2021 19:30 |
|
KidDynamite posted:it's swiftui only though right? It is not. There's a UIKit section in the GitHub readme, was just looking at it yesterday. Works like Combine from the looks of it. I think most of all of their videos on it are SwiftUI focused though. I'm interested in it, but I don't know about using something third party for the whole architecture of the app. Anyone here used it and got any thoughts?
|
# ¿ May 26, 2022 19:43 |
|
Graniteman posted:Sometimes I’ve found that there wasn’t a good way to do all that, and what I’ve done is made appData an optional inside myViewModel. Then, inside MyView, you can assign it using .onAppear (EnvironmentObjects exist within .onAppear closures). It makes MyViewModel ugly because you need to deal with the optional, but, it’s the only way I know to get something from an @EnvironmentObject into a new object inside a view. Could you not safely do code:
|
# ¿ Jun 4, 2022 01:04 |
|
I feel like I'm going crazy. Every time I try SwiftUI, I hit some dumb but huge hurdle so quickly. code:
The tap gesture takes precedence over the onDelete so the onDelete almost never gets triggered or if it rarely does, it's at the same time as the tap gesture. I've tried using swipeActions instead, both with a ForEach and just a List (they don't work on just a list) and the issue persists. Am I missing something, or am I giving up on SwiftUI for another few years?
|
# ¿ Sep 5, 2022 10:27 |
|
commie kong posted:Hey, give this a try: That seems to work, thanks. I did try something similar, but the Spacer turned out to be the secret sauce I was missing. Also, just got an interview with a company whose apps are built 'entirely' in SwiftUI, so I guess I'd better keep tooling around with it. I want to like it, but UIKit is like a warm blanket comparatively. Is this how people felt during the ObjC -> Swift transition?
|
# ¿ Sep 5, 2022 16:10 |
|
101 posted:I feel like I'm going crazy. Welp, I got an offer I couldn't refuse from a company whose app is built entirely in SwiftUI. Guess I'm gonna have to get to grips with it.
|
# ¿ Oct 24, 2022 20:49 |
|
pokeyman posted:Congrats! Cheers. I'm stuck between lolling and nerves myself. former glory posted:I'm such a declarative UI convert after learning SwiftUI that this sounds like a nice scenario, congrats and good luck with the change. In my experience so far, once you get the UI to do what you need in 100% swift, it's rock solid and has far fewer unexpected cases. But it can be a bit of a fight at first. Thanks. I'm hoping I'm the same, since it's clearly the way iOS development is going. The app is built using a Redux/TCA type system, which I really like using when I've tooled around with it. It seems like the system that makes the most sense to my brain with declarative stuff. It's also (embarrassingly) the first company I'll have worked for that cares about test coverage, and it actually looks like they'll actually be enjoyable to write with this approach. Always happy to have more tools in my belt.
|
# ¿ Nov 1, 2022 17:58 |
|
Small White Dragon posted:I need some GPU features that don't work on A8 (or earlier) chips. Not that I expect there are a ton of these still floating around in active use, but is there a way to specify that in Info.plist rather than just "Hey, this won't work if you have these models" in the App Store description? A look at the Wikipedia page seems to suggest no devices on iOS 16 run A8s, so you could specify a minimum that way?
|
# ¿ Nov 7, 2022 10:50 |
|
I somehow missed that Strings support Markdown now, and I'm in love
|
# ¿ Nov 9, 2022 17:43 |
|
Mannnn… async await, TCA, and their swift-dependencies system are just so god-drat good. I honestly don't think I'd enjoy SwiftUI 10x as much as I do if not for them.
|
# ¿ Sep 7, 2023 00:24 |
|
|
# ¿ May 2, 2024 13:39 |
|
Fate Accomplice posted:anyone have experience using Pointfree's Swift Composable Architecture? Yes. I have encouraged and assisted in moving both our teams iOS and macOS codebases over to it in the last year. I think it’s fantastic and has an excellent ecosystem of other niceties around it too (dependencies, navigation etc)
|
# ¿ Dec 23, 2023 16:44 |