Support for MacOS
sukhrobkhakimov opened this issue · 3 comments
sukhrobkhakimov commented
I see a No such module 'UIKit'
error when I try to use it on MacOS.
stonko1994 commented
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.
SimultaneouslyScrollView/Package.swift
Lines 6 to 8 in 03283fc
sukhrobkhakimov commented
@stonko1994 Then, I think the code should be like below to avoid such problems. Thank you.
#if os(iOS)
// Your code
#endif
stonko1994 commented
Yes, it definitely should.