Merge branch 'bugfix/share_url' into 'develop'
Change to have 1 item shared ### Summary Minor code bug fixes. Share url as 1 item, warning fix. Co-authored-by: Scott Pfeil <Scott.Pfeil3@verizonwireless.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/279
This commit is contained in:
commit
46bcd6618d
@ -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