David Bureš on Nostr: npub1gqn4m…q0pj6 You’re right, it makes more sense. Thanks for the tip! Can I ...
npub1gqn4mglfftd6292303jp2r060qwy69mpgdfprlumsuhf68wft27sxq0pj6 (npub1gqn…0pj6) You’re right, it makes more sense. Thanks for the tip!
Can I have another question? This is more about best practices than anything to do with SwiftData
In SavedTrip, I have an optional endDate (I think the optional makes sense here, since people might not have a specific end date in mind). I would like to have a DatePicker bound to this optional endDate, to let people pick the end date, but also make it possible to not have that date and leave it nil. How can I do this?
Published at
2023-07-06 10:00:16Event JSON
{
"id": "7ea42b4be36a2a15861a25be8b38936ba83850f265d0d8f75838781ea3603dcf",
"pubkey": "17ca545e6a302644a7898dc6862e512bb987c80b13d07bf3f5c2448e24db9b5f",
"created_at": 1688637616,
"kind": 1,
"tags": [
[
"p",
"40275da3e94adba515517c64150dfa781c4d1761435211ff9b872e9d1dc95abd",
"wss://relay.mostr.pub"
],
[
"p",
"9bddd4578b658620bdbf06f97fb8f978c08b641d1d0248a613f552d7ef7f709a",
"wss://relay.mostr.pub"
],
[
"e",
"22132bc86e22f88fc88be856866721ed13cdfdcd74092ff2d5e4da9214b34770",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://mstdn.social/users/davidbures/statuses/110666554834208437"
]
],
"content": "nostr:npub1gqn4mglfftd6292303jp2r060qwy69mpgdfprlumsuhf68wft27sxq0pj6 You’re right, it makes more sense. Thanks for the tip!\n\nCan I have another question? This is more about best practices than anything to do with SwiftData\n\nIn SavedTrip, I have an optional endDate (I think the optional makes sense here, since people might not have a specific end date in mind). I would like to have a DatePicker bound to this optional endDate, to let people pick the end date, but also make it possible to not have that date and leave it nil. How can I do this?",
"sig": "6d9d96f6ad75957d876ddd846312694cfdf9c6aadcb866d603174d75074f22502bf9e8883e14a8bdbdbe67a448e0f1aea61c97c4311e2ad3bdc0f3f11ac82ef9"
}