Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pisces authored Jan 26, 2019
1 parent cb26434 commit 441752d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,18 @@ extension RemoteNotificationElement {
}

struct APNSPayload: Decodable {
private(set) var aps: APS?
private(set) var alert: Alert?
let aps: APS?

// write properties for your payload.

struct APS: Decodable {
private(set) var sound: String?
private(set) var alert: Alert?
let sound: String?
let alert: Alert?
}

struct Alert: Decodable {
private(set) var body: String?
private(set) var title: String?
let body: String?
let title: String?
}
}
```
Expand Down

0 comments on commit 441752d

Please sign in to comment.