xmartlabs / Eureka

Elegant iOS form builder in Swift
https://eurekacommunity.github.io
MIT License
11.79k stars 1.33k forks source link

PasswordRow TextField Display ommited by three-pointed reader. #2079

Closed vertuxx closed 4 years ago

vertuxx commented 4 years ago

Hello. In Eureka 5.3.0, the PasswordRow text has been omitted in the three-point reader period.

FieldRow.swift If you comment out line 212, it will be displayed correctly.

open override func setup() {
    super.setup()
    selectionStyle = .none

    ....

    if let titleLabel = titleLabel {
        // Make sure the title takes over most of the empty space so that the text field starts editing at the back.
        let priority = UILayoutPriority(rawValue: titleLabel.contentHuggingPriority(for: .horizontal).rawValue + 1)
        textField.setContentHuggingPriority(priority, for: .horizontal) <---- THIS LINE IS THE PROBLEM
    }
}

Xcode12 iOS13.7 Eureka 5.3.0

Thank you.

vertuxx commented 3 years ago

Hello @mats-claassen.

I previously reported an issue where the password field was omitted with "..." in 3.5.0. This time I checked out 3.5.2 and rechecked to see that the issue wasn't resolved.

Please see the capture. If the password text becomes long, it will be omitted with "...". After all, commenting out what I pointed out earlier solved the problem.

/* if let titleLabel = titleLabel { ... } */

Please check again. Thank you.

EUREKA_5 3 2_IMG_0455

vertuxx commented 3 years ago

Hmm. Type "ijklijkli" and it will be omitted. "ijkl" can be entered up to 2 times, but when "i" is added, "..." is displayed at the end. The image below is all entered as "ijklijkli". Thank you.

EUREKA_5 3 2_IMG_0456