From 691b5c7341b7f558e3131cb26090dfc265d40319 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 29 Aug 2023 13:26:26 +0800 Subject: [PATCH] CapsulePosition --- Sources/ProHUD/Capsule/CapsuleViewModel.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/ProHUD/Capsule/CapsuleViewModel.swift b/Sources/ProHUD/Capsule/CapsuleViewModel.swift index 518eacb..0643fcc 100644 --- a/Sources/ProHUD/Capsule/CapsuleViewModel.swift +++ b/Sources/ProHUD/Capsule/CapsuleViewModel.swift @@ -9,7 +9,7 @@ import UIKit @objc open class CapsuleViewModel: BaseViewModel { - @objc public enum Position: Int { + @objc(CapsulePosition) public enum Position: Int { case top case middle case bottom @@ -26,7 +26,8 @@ import UIKit public extension CapsuleViewModel { - func position(_ position: Position) -> Self { + @discardableResult + @objc func position(_ position: Position) -> Self { self.position = position return self }