Skip to content

Commit d50a52f

Browse files
committed
[Fix] #272 - escaping 키워드 에러 해결
1 parent 49097f6 commit d50a52f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Runnect-iOS/Runnect-iOS/Global/Extension/UIKit+/UIButton+.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ extension UIButton {
5656

5757
func press(vibrate: Bool = false,
5858
animated: Bool = true,
59-
for controlEvents: UIControl.Event = .touchUpInside, _ closure: @escaping() -> Void) {
59+
for controlEvents: UIControl.Event = .touchUpInside, _ closure: @escaping () -> Void) {
6060
if #available(iOS 14.0, *) {
6161
self.addAction(UIAction { _ in closure()
6262
if animated { self.clickedAnimation(vibrate: vibrate) }
6363
}, for: controlEvents)
6464
} else {
6565
@objc class ClosureSleeve: NSObject {
6666
let closure: () -> Void
67-
init(_ closure: @escaping() -> Void) { self.closure = closure }
67+
init(_ closure: @escaping () -> Void) { self.closure = closure }
6868
@objc func invoke() { closure() }
6969
}
7070
let sleeve = ClosureSleeve(closure)

Runnect-iOS/Runnect-iOS/Global/Utils/RNUtils/UserManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class UserManager {
3838
self.isKakao = isKakao
3939
}
4040

41-
func signIn(token: String, provider: String, completion: @escaping(Result<String, RNError>) -> Void) {
41+
func signIn(token: String, provider: String, completion: @escaping (Result<String, RNError>) -> Void) {
4242
authProvider.request(.signIn(token: token, provider: provider)) { [weak self] response in
4343
guard let self = self else { return }
4444
switch response {
@@ -79,7 +79,7 @@ final class UserManager {
7979
}
8080
}
8181

82-
func getNewToken(completion: @escaping(Result<Bool, RNError>) -> Void) {
82+
func getNewToken(completion: @escaping (Result<Bool, RNError>) -> Void) {
8383
authProvider.request(.getNewToken) { [weak self] response in
8484
guard let self = self else { return }
8585
switch response {

Runnect-iOS/Runnect-iOS/Network/Service/NetworkProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Moya
99

1010
class NetworkProvider<Provider: TargetType>: MoyaProvider<Provider> {
11-
func request<Model: Codable>(target: Provider, instance: Model.Type, vc: UIViewController, completion: @escaping(Model) -> Void) {
11+
func request<Model: Codable>(target: Provider, instance: Model.Type, vc: UIViewController, completion: @escaping (Model) -> Void) {
1212
self.request(target) { result in
1313
switch result {
1414
/// 서버 통신 성공

0 commit comments

Comments
 (0)