+
Skip to content
Open
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
6 changes: 4 additions & 2 deletions Cosmos/CosmosView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Shows: ★★★★☆ (123)
Updates the stars and optional text based on current values of `rating` and `text` properties.

*/
private var previousLayers: Array<CALayer> = []
open func update() {

// Create star layers
Expand All @@ -120,8 +121,9 @@ Shows: ★★★★☆ (123)
layers = addTextLayer(textLayer: textLayer, layers: layers)
}

layer.sublayers = layers

for l in previousLayers { l.removeFromSuperlayer() }
for l in layers { layer.addSublayer(l) }
previousLayers = layers

// Update size
// ------------
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载