Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Sources/StackKit/HStackLayerWrapperView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ open class HStackLayerWrapperView: UIView {
let imageLayer = CALayer()
imageLayer.contents = subview.layer.contents
imageLayer.bounds = subview.layer.bounds
imageLayer.backgroundColor = subview.layer.backgroundColor
imageLayer.backgroundColor = subview.backgroundColor?.cgColor
layer.addSublayer(imageLayer)
return
}
Expand Down Expand Up @@ -103,7 +103,6 @@ open class HStackLayerWrapperView: UIView {
let tempLayer = CALayer()
tempLayer.contents = image.cgImage
tempLayer.bounds = subview.bounds
tempLayer.backgroundColor = subview.backgroundColor?.cgColor
layer.addSublayer(tempLayer)
}

Expand Down
3 changes: 1 addition & 2 deletions Sources/StackKit/VStackLayerWrapperView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ open class VStackLayerWrapperView: UIView {
let imageLayer = CALayer()
imageLayer.contents = subview.layer.contents
imageLayer.bounds = subview.layer.bounds
imageLayer.backgroundColor = subview.layer.backgroundColor
imageLayer.backgroundColor = subview.backgroundColor?.cgColor
layer.addSublayer(imageLayer)
return
}
Expand Down Expand Up @@ -103,7 +103,6 @@ open class VStackLayerWrapperView: UIView {
let tempLayer = CALayer()
tempLayer.contents = image.cgImage
tempLayer.bounds = subview.bounds
tempLayer.backgroundColor = subview.backgroundColor?.cgColor
layer.addSublayer(tempLayer)
}

Expand Down