refactor: naming changes

This commit is contained in:
Nikita Semenov 2022-10-04 12:41:32 +03:00
parent 444d3b159d
commit f230add1ed
1 changed files with 4 additions and 9 deletions

View File

@ -42,7 +42,7 @@ final public class LoggingPresenter {
private init() { }
/// binds openning and closing of logging list view to a shaking motion.
public func bind(_ scene: UIWindowScene? = nil) {
public func displayOnShakeEvent(of scene: UIWindowScene? = nil) {
if let scene = scene {
window.windowScene = scene
}
@ -51,14 +51,8 @@ final public class LoggingPresenter {
loggingViewController.setVisible(isVisible: false)
}
/// unbinds openning and closing of logging list view by shaking motion.
public func unbind() {
window.isHidden = true
loggingViewController.setVisible(isVisible: true)
}
/// shows the UIWindow with a button that opens a logging list view.
public func start(_ scene: UIWindowScene? = nil) {
public func addLogsButton(to scene: UIWindowScene? = nil) {
if let scene = scene {
window.windowScene = scene
}
@ -67,7 +61,8 @@ final public class LoggingPresenter {
}
/// hides the UIWindow.
public func stop() {
public func hide() {
window.isHidden = true
loggingViewController.setVisible(isVisible: true)
}
}