stonko1994/SimultaneouslyScrollView

Support for MacOS

sukhrobkhakimov opened this issue · 3 comments

I see a No such module 'UIKit' error when I try to use it on MacOS.

This is expected. The package currently only supports iOS.

Unfortunately, SPM does not prevent adding the package to other platforms as well even if only iOS is configured.

platforms: [
.iOS(.v13)
],

@stonko1994 Then, I think the code should be like below to avoid such problems. Thank you.

#if os(iOS)
// Your code
#endif

Yes, it definitely should.