SimultaneouslyScrollView icon indicating copy to clipboard operation
SimultaneouslyScrollView copied to clipboard

Support for MacOS

Open sukhrobkhakimov opened this issue 2 years ago • 3 comments

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

sukhrobkhakimov avatar Apr 06 '23 05:04 sukhrobkhakimov

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.

https://github.com/stonko1994/SimultaneouslyScrollView/blob/03283fcc014e01c8a45882dcbcf3cf719854e3c1/Package.swift#L6-L8

stonko1994 avatar May 20 '23 17:05 stonko1994

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

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

sukhrobkhakimov avatar May 22 '23 07:05 sukhrobkhakimov

Yes, it definitely should.

stonko1994 avatar May 22 '23 10:05 stonko1994