From 81feeb341caa5f7f9128054da1921ce31434468b Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 10 Oct 2022 15:23:59 +0800 Subject: [PATCH] IMKCandidates // Upgrade visible(). --- Source/Modules/UIModules/CandidateUI/IMKCandidatesImpl.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Modules/UIModules/CandidateUI/IMKCandidatesImpl.swift b/Source/Modules/UIModules/CandidateUI/IMKCandidatesImpl.swift index d24949a5..8b4849ba 100644 --- a/Source/Modules/UIModules/CandidateUI/IMKCandidatesImpl.swift +++ b/Source/Modules/UIModules/CandidateUI/IMKCandidatesImpl.swift @@ -24,7 +24,10 @@ public class CtlCandidateIMK: IMKCandidates, CtlCandidateProtocol { } } - public var visible = false { didSet { visible ? show() : hide() } } + public var visible: Bool { + get { isVisible() } + set { newValue ? show() : hide() } + } public var windowTopLeftPoint: NSPoint { get {