LLSegmentViewController icon indicating copy to clipboard operation
LLSegmentViewController copied to clipboard

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

Open Steve-001 opened this issue 3 years ago • 0 comments

问题描述: 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), 吧?

Steve-001 avatar Jun 30 '21 01:06 Steve-001