From f0732ed39db1680bee9d10c9c7e4e33f932b2bc1 Mon Sep 17 00:00:00 2001 From: Alex Usbergo Date: Mon, 11 Jun 2018 12:03:20 +0200 Subject: [PATCH] Fix swift < 4.2 compilation issues. --- RenderNeutrino.podspec | 2 +- render/mods/stylesheet/src/Stylesheet.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RenderNeutrino.podspec b/RenderNeutrino.podspec index 8c9b4100..7e41dec8 100644 --- a/RenderNeutrino.podspec +++ b/RenderNeutrino.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "RenderNeutrino" - s.version = "5.5.1" + s.version = "5.5.2" s.summary = "Render is a declarative library for building efficient UIs on iOS inspired by React." s.description = <<-DESC s.platform = :ios diff --git a/render/mods/stylesheet/src/Stylesheet.swift b/render/mods/stylesheet/src/Stylesheet.swift index 96304f9d..67e8b476 100644 --- a/render/mods/stylesheet/src/Stylesheet.swift +++ b/render/mods/stylesheet/src/Stylesheet.swift @@ -3,8 +3,10 @@ import UIKit // MARK: - UIStylesheet +#if swift(>=4.2) /// Shorthand to access the default global stylesheet. public let S = UIStylesheet().style +#endif public struct UIStylesheet { /// Returns the stylesheet rule for the given path (e.g. Palette.black).