Post

Replies

Boosts

Views

Activity

Comment on Please Help: Thread 1: EXC_BAD_ACCESS (code=2, address=0x30ecb2ff8)
Thanks for showing the stack trace. (If it was formatted properly, it would be better.) It shows that it is not a simple recursion thing and is very likely related to SwiftUI things. You may have broken some restrictions of SwiftUI (unfortunately, many of them are not documented clearly) or it may be a bug of SwiftUI. Which is the view causing this crash?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on An alternative Swift method to PHP `pack()` method
OK. toHex() is this method. The code does not have enough doc nor type hints. But according to the doc of pack(), It is expected to return a binary string. The concept of binary string does not exist in the Swift language. You may need to decide which data type you should return: a binary data (Data is preferred in Swift) or a string?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21