Post

Replies

Boosts

Views

Activity

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 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 "Failed to produce a diagnostic for expression; please file a bug report" error.
Thanks for feedback. You can test with @State var text = "vak", to see Text change when tapping button. Don't forget to close the thread.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Action sheet or alert to block user?
It's better, but would be even better with explicit info. Which is First report in your sum up ? Which are its actions ? What is Block alert ? etc…
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Convert swift 2 to swift 4
If you don't see any difference between Swift 2 and Swift 5, you may have overlooked this ? https://github.com/apple/swift/blob/main/CHANGELOG.md
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Solve a set of equations
Once solved, what should the intersect func return ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Apr ’22
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:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Working with Contractors
Working with someone since a year is not enough (in my mind) to create absolute trust… Can you meet them in person, not remotely ?
Replies
Boosts
Views
Activity
Apr ’22
Comment on Error "Missing argument for parameter #1 in call.
Yes, post your mail here please.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Blank project page in Xcode
There is also the Editor menu > Preview
Replies
Boosts
Views
Activity
Apr ’22
Comment on TableView editingStyle
Thanks for the feedback. You can close the thread now on the correct answer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on convertPoint returning wrong data in tableview
If you don't show code, it is impossible to say. Which version of iOS ? And tell precisely what value you get, what value you expected.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Swift TextField Not Horizontally Scrolling
@Raphael95 I just tested your code. It scroll. Which versions of Xcode, iOS ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Swift TextField Not Horizontally Scrolling
I tested on MacOS 12.3.1, Xcode 13.3 (not 13.3.1) and iOS 15.4. Does work. I will try on 13.3.1, in case.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Are there application classes where UIKit is a better choice than SwiftUI?
For the first part of the question, please show code.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Swift TextField Not Horizontally Scrolling
I also tested in MacOS 12.3.1, Xcode 13.3.1, iOS 15.4 simulator. Works OK. Did you reboot the Mac, in case ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22