Renamed background

This commit is contained in:
Simon 2018-12-26 14:24:30 +08:00
parent 1cff1e82d5
commit faf07f4b71
1 changed files with 3 additions and 3 deletions

View File

@ -35,12 +35,12 @@ public struct PlaceholderFactory {
public struct PlaceholderSettings {
let size: CGSize
let background: PlaceholderBackground
let background: BackgroundStyle
let showDimensionAsText: Bool
let convertDimensionToAspectRatio: Bool
public init(size: CGSize,
background: PlaceholderBackground,
background: BackgroundStyle,
showDimensionAsText: Bool,
convertDimensionToAspectRatio: Bool) {
self.size = size
@ -50,7 +50,7 @@ public struct PlaceholderSettings {
}
}
public enum PlaceholderBackground {
public enum BackgroundStyle {
case solidColor(Color)
case image(Image)
}