Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Merge requests
!40
Fix user discovery search
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix user discovery search
fix/ud-search
into
development
Overview
0
Commits
3
Pipelines
0
Changes
3
Merged
Dariusz Rybicki
requested to merge
fix/ud-search
into
development
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
3
Expand
Add
UDSearchResult
model.
Use
UDSearchResult
model in
UdSearchCallback
.
Workaround: Convert big ints in
UdSearchResult
JSON to strings.
Edited
2 years ago
by
Dariusz Rybicki
0
0
Merge request reports
Compare
development
version 1
9a3e5d90
2 years ago
development (base)
and
latest version
latest version
a0437bc3
3 commits,
2 years ago
version 1
9a3e5d90
2 commits,
2 years ago
3 files
+
130
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Sources/XXClient/Callbacks/UdSearchCallback.swift
+
3
−
3
Options
@@ -2,11 +2,11 @@ import Bindings
import
XCTestDynamicOverlay
public
struct
UdSearchCallback
{
public
init
(
handle
:
@escaping
(
Result
<
[
Data
],
NSError
>
)
->
Void
)
{
public
init
(
handle
:
@escaping
(
Result
<
[
UDSearchResult
],
NSError
>
)
->
Void
)
{
self
.
handle
=
handle
}
public
var
handle
:
(
Result
<
[
Data
],
NSError
>
)
->
Void
public
var
handle
:
(
Result
<
[
UDSearchResult
],
NSError
>
)
->
Void
}
extension
UdSearchCallback
{
@@ -29,7 +29,7 @@ extension UdSearchCallback {
callback
.
handle
(
.
failure
(
error
as
NSError
))
}
else
if
let
data
=
contactListJSON
{
do
{
callback
.
handle
(
.
success
(
try
JSONDecoder
()
.
decode
([
Data
]
.
self
,
from
:
data
)))
callback
.
handle
(
.
success
(
try
[
UDSearchResult
]
.
decode
(
data
)))
}
catch
{
callback
.
handle
(
.
failure
(
error
as
NSError
))
}
Loading