Skip to content

ios 18 下划线不生效了 #38

Description

@kvin-van

guard let ran = protocolString.range(of: protocolStr1) else { return }
let range1 = NSRange(ran, in: protocolString)
mattribute.bs_set(underlineStyle: .single, range: range1)
mattribute.bs_set(textHighlightRange: range1, color: UIColor(named: "49671E"), backgroundColor: nil) {[weak self] _, _, , in
guard let weakself = self else { return }
weakself.goWebPage(protocolStr1)
}

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