Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

AttributeGraph: cycle detected through attribute 234608 #11

@solkpolk

Description

@solkpolk

When I have an iTextField that's first responder it creates attribute warnings. I added a Symbolic breakpoint with symbol print_cycle. It seems that Xcode doesn't like changing first responder they way its done below.

public struct iTextField: UIViewRepresentable {
...
public func updateView {
...
if isEditing.wrappedValue {
    textField.becomeFirstResponder() // <- Causes the warning
} else {
    textField.resignFirstResponder()
}

}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions