Remove errors and update podspec
This commit is contained in:
parent
bc28d26f63
commit
658146f529
|
@ -3,14 +3,14 @@ Pod::Spec.new do |s|
|
|||
s.version = "0.0.1"
|
||||
s.summary = "Create placeholder images. In Swift."
|
||||
s.homepage = "https://github.com/simonlee2/PlaceholderKit"
|
||||
s.description = ""
|
||||
s.description = "PlaceholderKit generates images that you can use for testing during development."
|
||||
|
||||
s.license = { :type => "MIT", :file => "LICENSE.md" }
|
||||
s.authors = {
|
||||
"Simon Lee" => "dev.simonlee@gmail.com"
|
||||
}
|
||||
|
||||
s.source = { :git => "https://github.com/simonlee2/PlaceholderKit", :tag => "0.0.1" }
|
||||
s.source = { :git => "https://github.com/simonlee2/PlaceholderKit.git", :tag => "0.0.1" }
|
||||
s.source_files = "Sources"
|
||||
|
||||
s.platforms = { :ios => "8.0", :osx => "10.11", :tvos => "9.0", :watchos => "3.0" }
|
||||
|
|
|
@ -23,7 +23,7 @@ public struct PlaceholderFactory {
|
|||
switch settings.background {
|
||||
case .solidColor(let color):
|
||||
return Image.createPlaceholder(withColor: color, size: settings.size)
|
||||
case .image(let image):
|
||||
case .image:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue