Skip to content

Commit

Permalink
macOS compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Aug 29, 2017
1 parent d9262d4 commit 95dcfef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/Kingfisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ import ImageIO
#if os(macOS)
import AppKit
public typealias Image = NSImage
public typealias View = NSView
public typealias Color = NSColor
public typealias ImageView = NSImageView
typealias Button = NSButton
#else
import UIKit
public typealias Image = UIImage
public typealias View = UIView
public typealias Color = UIColor
#if !os(watchOS)
public typealias ImageView = UIImageView
Expand Down
2 changes: 1 addition & 1 deletion Sources/Placeholder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension Placeholder where Self: Image {

extension Image: Placeholder {}

extension Placeholder where Self: UIView {
extension Placeholder where Self: View {
public func add(to imageView: ImageView) {
imageView.addSubview(self)

Expand Down

0 comments on commit 95dcfef

Please sign in to comment.