|
@@ -39,7 +39,7 @@ class LNRoomOrderGuideView: UIView {
|
|
|
case .demand:
|
|
case .demand:
|
|
|
.init(top: -8, left: -4, bottom: -8, right: -4)
|
|
.init(top: -8, left: -4, bottom: -8, right: -4)
|
|
|
case .playmate:
|
|
case .playmate:
|
|
|
- .init(top: 0, left: -4, bottom: 0, right: -4)
|
|
|
|
|
|
|
+ .init(top: -16, left: -4, bottom: -16, right: -4)
|
|
|
case .order:
|
|
case .order:
|
|
|
.init(top: -2, left: -2, bottom: -2, right: -2)
|
|
.init(top: -2, left: -2, bottom: -2, right: -2)
|
|
|
}
|
|
}
|
|
@@ -285,7 +285,7 @@ private extension LNRoomOrderGuideView {
|
|
|
|
|
|
|
|
let isCardAbove = cardFrame.maxY <= focusRect.minY
|
|
let isCardAbove = cardFrame.maxY <= focusRect.minY
|
|
|
let dotCenter = CGPoint(
|
|
let dotCenter = CGPoint(
|
|
|
- x: focusRect.midX,
|
|
|
|
|
|
|
+ x: currentStep == .demand ? focusRect.maxX - 42 : focusRect.midX,
|
|
|
y: isCardAbove ? focusRect.minY - 7.5 : focusRect.maxY + 7.5
|
|
y: isCardAbove ? focusRect.minY - 7.5 : focusRect.maxY + 7.5
|
|
|
)
|
|
)
|
|
|
dotView.bounds = CGRect(x: 0, y: 0, width: 15, height: 15)
|
|
dotView.bounds = CGRect(x: 0, y: 0, width: 15, height: 15)
|