SimultaneouslyScrollView
SimultaneouslyScrollView copied to clipboard
Support for MacOS
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.
https://github.com/stonko1994/SimultaneouslyScrollView/blob/03283fcc014e01c8a45882dcbcf3cf719854e3c1/Package.swift#L6-L8
@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.