yonat / MultiSelectSegmentedControl

UISegmentedControl remake that supports selecting multiple segments, vertical stacking, combining text and images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work in Interface Builder

MaxHaertwig opened this issue · comments

Description of the problem:
I created a new iOS project in Xcode 11 GM 2 and added the MultiSelectSegmentedControl dependency via SPM. I added a UIView in Interface Builder and set its class to MultiSelectSegmentedControl. Next to "Designables", it tries to compile, but fails with the errors in the image below. However, when compiling the app for running, the build succeeds.

It seems Interface Builder tries to compile MultiSelectSegmentedControl and all its dependencies for all platforms, including tvOS. Should I submit a pull request adding the missing #if os checks to SweeterSwift?

Pushed SweeterSwift 1.0.5 with the fix, thanks for reporting!