File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ as a package dependency in Xcode.
1919Add the following to the dependencies array in your ` Package.swift ` :
2020
2121``` swift
22- .package (url : " https://github.com/rust-nostr/nostr-sdk-swift.git" , from : " 0.0.1 " ),
22+ .package (url : " https://github.com/rust-nostr/nostr-sdk-swift.git" , from : " 0.0.2 " ),
2323```
2424
2525## 📄 Usage
@@ -35,11 +35,11 @@ client.connect();
3535
3636let filter = Filter ()
3737 .pubkey (pubkey : keys.publicKey ())
38- .since (timestamp : timestamp ());
38+ .since (timestamp : Timestamp. now ());
3939let events = try client.getEventsOf (filters : [filter], timeout : nil );
4040// handle events
4141
42- let event = try EventBuilder.newTextNote (content : " Hello ffrom Rust Nostr SDK Swift bindings" , tags : []).toEvent (keys : keys);
42+ let event = try EventBuilder.newTextNote (content : " Hello from Rust Nostr SDK Swift bindings" , tags : []).toEvent (keys : keys);
4343client.sendEvent (event : event);
4444```
4545
You can’t perform that action at this time.
0 commit comments