Skip to content

Instantly share code, notes, and snippets.

@naturalwarren
Last active April 19, 2023 00:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
DataRow+ViewModelConvertible
extension DataRow: ViewModelConvertible {
func viewModel(context: SDUIContext) -> some ViewModel {
return DataRowViewModel(
title: self.title,
titleURL: self.titleHyperlink,
subtitle: self.subtitle,
layout: self.layout.toNativeLayout(),
accessory: accessoryView?.viewModel(context: context)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment