Aws-sdk-ios: Improving Objective C interoperability with Swift ?

Created on 7 Jul 2016  路  5Comments  路  Source: aws-amplify/aws-sdk-ios

Hi,

Please can you consider providing interoperability for Swift project by improving support Objective C interoperability feature like:

Something even greater would be to have a full Swift value type support for all of the generated code from AWS platform.

Thanks,

question

Most helpful comment

@mackoj this issue is fixed. Please download the sdk again from the api gateway console.

All 5 comments

What version of sdk are you using?

We added generics support to all low leve clients and some high level api's like TransferUtility from version 2.3.4

The nullability support was added similarly in version 2.3.1

What value types in swift are you missing out on?

Hi,

I use the 2.4.5 version of AWSCore. I use AWS API Gateway to generate my AWSModel and the issue is in that part of the process I think. Can I improve my model on AWS API Gateway in order to have better type information in the generated SDK ?

The issue that I have is simple. I'm in swift so I have to verify all the time if my properties on my AWSModel a nil or not because I don't have nullability annotation on it. This might cause a lot a crash.

Cheers,

Thanks, we will update you when the fix is out

@mackoj this issue is fixed. Please download the sdk again from the api gateway console.

Can you please remove the space character added in the methods between
the first parenthesis and the class name for the parameters into *ApiClient.h?

- (AWSTask *)usersUserIdPut:( NSString *)userId body:( UserModel *)body;

Thank you 馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChrisInspect picture ChrisInspect  路  4Comments

pawlowskialex picture pawlowskialex  路  4Comments

aymericio picture aymericio  路  5Comments

premiumbosslimited picture premiumbosslimited  路  3Comments

r-plus picture r-plus  路  3Comments