Search results for

swiftui

16,582 results found

Post

Replies

Boosts

Views

Activity

Integrating UITableView into SwiftUI
I’m looking for advice re integration of UITableView into SwiftUI. I’m doing that because I want control of the table background and row swipe functionality, which I believe is still not available with List in SwiftUI. I’ve watched WWDC19 tutorial on UIKit Integration, and Rana talks about using the target action pattern, but I can’t work out how that would be done with a TableView. Specifically: I have the UITableView wrapped properly, using a coordinator, and displaying within SwiftUI. But when a row is deleted, I am struggling with how to pass back the deleted row’s indexPath , and how to delete the relevant data within the source array in SwiftUI. Any help much appreciated!
0
0
363
Sep ’20
SwiftUI... but why?
Is it just me, or does anybody else feel like SwiftUI is a new language built by an engineer who didn't realize there are storyboards or how to use storyboards? I am watching these videos about how magical it is to use SwiftUI, then watching an engineer type in code to draw views and cells... Magical in what way? that he is able to recall from memory the code to type in? I kept thinking, but... but... I can just drag in a view in a storyboard, move it around play with it there as a graphical interface... which actually is magical, I can drag a table view in, and a cell view in and actually stretch it and move it to what I want... drag an image in or a thumbnail view in and size it graphically, where this engineer decided going to menus to find aspect ratios that suspiciously look like what a Storyboards menu views look like. so why didn't another set of engineers also create the preview and tying data structures to storyboards? then call it meta magical now we have an entire new set of langu
3
0
1.8k
Sep ’20
SwiftUI evolution
Hi, I'm very grateful to apple engineers for the tools their provide and huge amount of work they've done so the community can have swiftUI with all its amazing features. I'd like to clarify future development direction of the framework and why bound to iOS version is required. SwiftUI was announced with a few elements and still is not ready to build complex app. Everyone is looking forward to start using swiftUI in production development as fast as it possible. Generally everyone supports 2-3 iOS versions, like iOS 11-13 currently. If you add let's say SearchBar view to the framework next year it will be part of iOS 15, so developers will be able to use it once support of iOS 14 will be dropped and we will step to the age of supporting iOS 15-17, what's is 4 years from now. And obviously not all elements will be covered, setup and ready by next year. So, how many years we have to wait and why? Can't everything be available starting from iOS 13 when the framework was introduced firs
1
0
1.1k
Jun ’20
SwiftUI/AttributeGraph crash
I'm getting this segfault stack trace from TestFlight. Any idea about how I should approach it? Thread 0 Crashed: 0 SwiftUI 0x000000018dd18e14 specialized static Array.== infix(_:_:) + 0 (:0) 1 SwiftUI 0x000000018e2ab404 static StrokeStyle.== infix(_:_:) + 100 (:0) 2 SwiftUI 0x000000018e2ab468 protocol witness for static Equatable.== infix(_:_:) in conformance StrokeStyle + 60 (:0) 3 AttributeGraph 0x00000001b0e4feec AGDispatchEquatable + 24 (Misc.swift:160) 4 AttributeGraph 0x00000001b0e4fd68 AG::LayoutDescriptor::Compare::operator()(unsigned char const*, unsigned char const*, unsigned char const*, unsigned long, unsigned int) + 1632 (ag-value.cc:579) 5 AttributeGraph 0x00000001b0e4f674 AG::LayoutDescriptor::compare(unsigned char const*, unsigned char const*, unsigned char const*, unsigned long, unsigned int) + 96 (ag-value.cc:723) 6 AttributeGraph 0x00000001b0e4efb0 AGGraphSetOutputValue + 268 (AGGraph.mm:784) 7 SwiftUI 0x000000018e8c1eb4 closure #1 in StatefulRule.value.
1
0
1.1k
Aug ’23