Skip to content

Commit

Permalink
Fix compliation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdrone committed Nov 16, 2016
1 parent 6d4e911 commit b948ebe
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion Demo/RenderTodoDemo/AlbumComponentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class AlbumComponentView: ComponentView {
ComponentNode<UILabel>().configure({ view in
view.text = self.album?.artist ?? "Unknown Artist"
view.font = S.Typography.extraSmallLight
view.textColor = S.Color.white
view.textColor = UIColor.red
view.numberOfLines = 0
view.backgroundColor = UIColor.gray.withAlphaComponent(0.67)
view.css_usesFlexbox = true
Expand Down
2 changes: 1 addition & 1 deletion Render.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "Render"
s.version = "1.2"
s.version = "1.2.1"
s.summary = "Swift and UIKit a la React."

# This description is used to generate tags and improve search results.
Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions Render/BaseComponentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ open class BaseComponentView: UIView, ComponentViewWithReusePoolViewType {
/// - Note: Always call the super implemention.
open func initalizeComponent() {
//⌘+R
#if (arch(i386) || arch(x86_64)) && (os(iOS))
KeyCommands.register(input: "r", modifierFlags: .command) { [weak self] in
guard let _ = self?.superview else { return }
print("⌘+R: Reloading component.")
self?.renderComponent(withSize: self?.lastSize ?? CGSize.undefined)
}
#endif
}

/// Applies the component configuration (as per ViewType extension)
Expand Down
2 changes: 1 addition & 1 deletion Render/KeyCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

#if (arch(i386) || arch(x86_64)) && (os(iOS) || os(tvOS))
#if (arch(i386) || arch(x86_64)) && (os(iOS))
struct KeyActionableCommand {
fileprivate let keyCommand: UIKeyCommand
fileprivate let actionBlock: () -> ()
Expand Down

0 comments on commit b948ebe

Please sign in to comment.