Skip to content

LLSegmentViewController 中 open func selected(at Index:NSInteger,animation:Bool) 方法无效 #21

@Steve-001

Description

@Steve-001

问题描述:
LLSegmentViewController 中
open func selected(at Index:NSInteger,animation:Bool){} 方法无效

`
open func selected(at Index:NSInteger,animation:Bool) {
guard (ctls.count < Index && Index > 0) else {
return
}
segmentCtlView.selected(at: Index, animation: animation)
}

`

此处的 guard 判断 应该是 (ctls.count > Index && Index > 0), 吧?

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