Skip to content

Commit

Permalink
add swift support
Browse files Browse the repository at this point in the history
  • Loading branch information
duwen committed Sep 7, 2018
1 parent 231829b commit cf556ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ In order to be compatible with IOS , we make the following convention on Object

In Swift, you should declare APIs as follows:

```
```swift
//MUST USE "_" to ignore the first argument name explicitly。
@objc func testSyn( _ arg:String) -> String {
return String(format:"%@[Swift sync call:%@]", arg, "test")
Expand Down
2 changes: 1 addition & 1 deletion readme-chs.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pod "dsBridge"

在 Swift中,你应该按照如下方式声明APIs:

```
```swift
//必须给第一个参数前添加下划线"_"来显式忽略参数名。
@objc func testSyn( _ arg:String) -> String {
return String(format:"%@[Swift sync call:%@]", arg, "test")
Expand Down

0 comments on commit cf556ee

Please sign in to comment.