alexiscn / SynologyKit

Synology File Station SDK for Swift
MIT License
37 stars 8 forks source link

HELP WANTED - How can I use your SynologyKit with SwiftUI #1

Closed CPiersigilli closed 5 years ago

CPiersigilli commented 5 years ago

I tried using your SynologyKit with SwiftUI without success: how can I do it? How can I handle errors resulting from, for example, an incorrect host, or incorrect user, or incorrect password, or .... ? I have tested your SynologyKitExample with DS918+ and is very very fast. Thank you for your great SynologyKit.

alexiscn commented 5 years ago

You can referer MovieSwiftUI

API Related code is here

SynologyKit document has updated.

CPiersigilli commented 5 years ago

Thanks, now I was able to get your SynologyKit working with SwiftUI.

If no connection, the error is:

Schermata 2019-11-09 alle 19 04 19

In this case the error is correct.

If I enter an incorrect URL:

Schermata 2019-11-09 alle 18 53 05

In this case the error is correct.

But, with a wrong password or wrong user the error is:

Schermata 2019-11-09 alle 18 59 38

In this case the error is wrong, because the error is "No such account or incorrect password" with Id 400.

How can I do to show the correct error?

alexiscn commented 5 years ago

I will fix it in later version...

alexiscn commented 5 years ago

Thanks, now I was able to get your SynologyKit working with SwiftUI.

If no connection, the error is:

Schermata 2019-11-09 alle 19 04 19

In this case the error is correct.

If I enter an incorrect URL:

Schermata 2019-11-09 alle 18 53 05

In this case the error is correct.

But, with a wrong password or wrong user the error is:

Schermata 2019-11-09 alle 18 59 38

In this case the error is wrong, because the error is "No such account or incorrect password" with Id 400.

How can I do to show the correct error?

Fixed in Version 0.2.5

CPiersigilli commented 5 years ago

Now work fine. Thank you.