Expression type 'SegmentioOptions' is ambiguous without more context
Closed this issue · 1 comments
slobodanantonijevic commented
Hi The problem is that I keep getting this from XCode 8 and have no idea why.
Here is the func I have in my view controller:
func tabBarOptions() -> SegmentioOptions {
return SegmentioOptions( // this line pops the error
backgroundColor: UIColor.clear,
maxVisibleItems: 2,
scrollEnabled: false,
indicatorOptions: SegmentioIndicatorOptions,
horizontalSeparatorOptions: SegmentioHorizontalSeparatorOptions,
verticalSeparatorOptions: SegmentioVerticalSeparatorOptions,
imageContentMode: .center,
labelTextAlignment: .center,
segmentStates: SegmentioStates
)
}
And this is where I call it:
func setupTabBar() {
homeTabBar.setup(
content: tabBarContent(),
style: SegmentioStyle.onlyLabel,
options: tabBarOptions()
)
}
Any idea on why this is happening and what am I doing wrong?
Thx in advance
S
slobodanantonijevic commented
Sorry my bad.
God, I bloody forgot few params!!!