INNER CODE UNIT · Swift

onFailureHandler

duguyihou/react-native-turbo-image · ios/TurboImageView.swift:429

  func onFailureHandler(with error: Error) {
    let payload = [
      Constants.error: error.localizedDescription,
    ]
    
    onFailure?(payload)
  }
  
  func onCompletionHandler(with result: Result<ImageResponse, any Error>) {
    onCompletion?([Constants.state: "completed"])
  }
  
}

// MARK: - live text
fileprivate extension TurboImageView {
  func handleLiveTextInteraction() {
    #if !os(tvOS)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…