Post

Replies

Boosts

Views

Activity

Comment on TableView editingStyle
If you wanted to remove from self.trades, you should: find what is the position in trades of the section/row you remove (it is NOT indexPath.row). Then remove it from self.trades. After that, recompute self.sections dictionary with self.sections = groupBySymbol.map {(Key, Value) in return sectionBySymbol(symbol: Key, trades: Value) }. So it is much simpler to update sections[indexPath.section].trades directly.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’22
Comment on Solve a set of equations
So you had seen the answer on SO, and seen the answer there was essentially same as mine: no generic solution to solving. Note: if you set one of the unknown, you will not explore the whole surface and will probably fall out of the intersection. But if that fits your needs, that's OK? Good luck.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’22
Comment on What is "focus"?
But doc describes how it is supposed to work. For instance: "In the following example of a simple login screen, when the user presses the Sign In button and one of the fields is still empty, focus moves to that field. Otherwise, the sign-in process proceeds."
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22