Post

Replies

Boosts

Views

Activity

Comment on Blurring Text in a sentence
To compute the x position of the substring, you can simply multiply the number of chars before by char width in the font (will give approximate value, but should be enough here) or use sizeWithAttributes. This could help: https://stackoverflow.com/questions/37475593/swift-how-do-i-find-the-positionx-y-of-a-letter-in-a-uilabel
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23
Comment on swiftUI
You marked the answer as correct, which means you have solved your problem… So little chance you get a quick answer now. In any case, you should have shown your present code, shown what you get and explain why it is not correct.
Topic: Programming Languages SubTopic: Swift Tags:
May ’23
Comment on I try to run function on another class, But have a suspicious nil in code.
You closed your own question by marking it as correct answer (which visibly was not). Don't expect many more answers. But check the identifier you passed to instantiateViewController and what class you have defined in storyboard for this Setting VC (it should be SettingUI). And remember: you should not unwrap an optional (controllerTwo) if you are not absolutely sure it cannot be nil. But you should test with if let controllerTwo { …
Topic: Programming Languages SubTopic: Swift Tags:
May ’23