Skip to content

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

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), 吧?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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