Open mikaelacaron opened 3 years ago
Hi, I'm new to Swift and interested to work on this issue. Could you please assign it to me? Thank you!
You got this! Let me know if you have any issues or questions getting set up!
I created Twitter developer account, apply for Twitter API but I not sure what to do next to pull the Twitter API into the project?
Look at the Setting Up Secrets section of the CONTRIBUTING.md. You'll create your own file named Secrets.swift and add that to the project, make sure you don't commit this new file, it'll be ignored by git, but make sure it doesn't get added to the Xcode project file.
You'll paste your API key as the bearer token, like the example says, and that's it! Your project will be using your own API key to make network requests.
I want to ask that how the leading swipe action will work in this situation? We swipe the URL box and then it leads to category page right?
The screen you're showing is the AddURLView
which wouldn't be right because technically the user could change the tweet url, when they should only have access to change the category.
I had originally based the UI from the Apple Notes application.
You can take inspiration from that, showing a new sheet of the different categories and then selecting one. Also note this issue does NOT cover having cascading / nested categories, that's too complicated for now
I have 2 issues: 1/ I try to add an URL Tweets for testing but it shows invalid all the times.
2/ The preview of Tweet Card cannot show on XCode.
Please give me some advices, Thank You!
@kiennguyenchi you're using a tweet when you click the share button on Twitter right?
Like click share and then copy link and paste that link into the app? (It also should automatically grab your clipboard)
Sorry, but can you please assign this question to another person? because my xcode cannot load the view of Tweet Card, so I cannot work on it.
Yup! Feel free to work on a different issue, if you'd like
@mikaelacaron So I've been trying to implement this, but there's an issue. As soon as you add swipeActions
whether leading or trailing, it cancels out any onDelete
modifier which has the nice delete animation. I'm reading that you're left with trying to implement your own delete animation, but List
s don't really play nicely with that.
A solution that might be nice is turning the tweets List
into a LazyVStack
and adding a context menu that has things like delete, move, etc.
That's interesting, and sure! Go ahead and try that
Was able to retain the swipe features. The delete animation isn't the same as you get out of the box from Apple, but it's still pretty nice. Not sure why I was having an issue before. Anyway, PR is up for this issue.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context