Skip to content

Commit

Permalink
fix init
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzzzyBoy committed Nov 1, 2024
1 parent fae1a88 commit a301e5f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions TestApp/Sources/OPDS/OPDSCatalogs/EditOPDSCatalogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ struct EditOPDSCatalogView: View {
@State private var errorMessage = ""
@State private var urlString: String

init(catalog: OPDSCatalog, onSave: @escaping (OPDSCatalog) -> Void) {
_catalog = State(initialValue: catalog)
init(
catalog: OPDSCatalog,
onSave: @escaping (OPDSCatalog) -> Void
) {
self.catalog = catalog
self.onSave = onSave
_urlString = State(initialValue: catalog.url.absoluteString)
self.urlString = catalog.url.absoluteString
}

var body: some View {
Expand Down

0 comments on commit a301e5f

Please sign in to comment.