 //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 //  THE SOFTWARE.
 
-#if os(OSX)
+#if os(macOS)
     import AppKit
 #else
     import UIKit
 #endif
 
-#if os(OSX)
+#if os(macOS)
     public typealias IndicatorView = NSView
 #else
     public typealias IndicatorView = UIView

    }

    func startAnimatingView() {
        #if os(OSX)
            animatedImageIndicatorView.animates = true
        #else
            animatedImageIndicatorView.startAnimating()

        animatedImageIndicatorView = ImageView()
        animatedImageIndicatorView.image = image
        
        #if os(macOS)
            // Need for gif to animate on macOS
            self.animatedImageIndicatorView.imageScaling = .scaleNone
            self.animatedImageIndicatorView.canDrawSubviewsIntoLayer = true
        #else
