Change to have 1 item shared
This commit is contained in:
parent
e942bbfe15
commit
3459e067b3
@ -90,12 +90,8 @@ public extension ClientParameterHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return try await withCheckedThrowingContinuation({ continuation in
|
return try await withCheckedThrowingContinuation({ continuation in
|
||||||
do {
|
getParameters(with: model, requestParameters: requestParameters, actionId: actionId) { parameters in
|
||||||
try getParameters(with: model, requestParameters: requestParameters, actionId: actionId) { parameters in
|
continuation.resume(returning: parameters)
|
||||||
continuation.resume(returning: parameters)
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
continuation.resume(throwing: error)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,7 +20,7 @@ open class ActionShareHandler: MVMCoreActionHandlerProtocol {
|
|||||||
shareData = [model.sharedText]
|
shareData = [model.sharedText]
|
||||||
case .url:
|
case .url:
|
||||||
let url = try URL.createURL(with: model.sharedText)
|
let url = try URL.createURL(with: model.sharedText)
|
||||||
shareData = [model.sharedText, url]
|
shareData = [url]
|
||||||
}
|
}
|
||||||
try await shareWith(activityItems: shareData, model: model)
|
try await shareWith(activityItems: shareData, model: model)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user