0372名称未設定 (ワッチョイ 7fbb-k50j)
2021/07/05(月) 10:39:33.78ID:aRAIgmvi0ちなみにapiServiceはlet変数で、queryをパラメータとするclosureで使われるapiSeviceの参照方法(weak, unowned or strong)を指定してる様に見えるのですけど...
let responseSubscriber = onCommitSubject
.flatMap { [apiService] query in
apiService.request(with: SearchRepositoryRequest(query: query))
以下略
出典
https://github.com/SatoTakeshiX/SwiftUICatalog
https://github.com/SatoTakeshiX/SwiftUICatalog/blob/master/GitHubApiClientSample/GitHubApiClientSample/Screen/Home/HomeViewModel.swift