8000 Sticker Packs by Sjmarf · Pull Request #150 · SwiftcordApp/Swiftcord · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sticker Packs #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 16, 2023
Merged

Sticker Packs #150

merged 16 commits into from
May 16, 2023

Conversation

Sjmarf
Copy link
Contributor
@Sjmarf Sjmarf commented May 13, 2023

Warning
This relies on DiscordKit being updated to include my recent PR.

  • Changed Stickers to use Buttons for click detection instead of .onTapGesture. This means that the Bird sticker, which previously wouldn't show a preview when clicked, now works correctly.
  • Added a Sticker Pack view that can be accessed from the sticker preview view. This can be a little laggy on the larger sticker packs, but it's usable (on my device).
  • Moved the code for hover detection from the sticker-view used in messages to the basic StickerItemView. This is because the hover-detection code is reused in the sticker pack view.
  • Renamed StickerView (the view used to display stickers in messages) to MessageStickerView.

Copy link
Member
@cryptoAlgorithm cryptoAlgorithm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this PR was high quality, but there were some issues with changes to the project file and some other lint warnings. Applying all suggested fixes should resolve issues to the project file, but lint errors need to be manually resolved. Swiftcord's codebase has switched to only using spaces for indentation, so I suggest the same be done here to prevent mixed indentation warnings.

Sjmarf and others added 4 commits May 14, 2023 09:13
Co-authored-by: CryptoAlgo <64193267+cryptoAlgorithm@users.noreply.github.com>
Co-authored-by: CryptoAlgo <64193267+cryptoAlgorithm@users.noreply.github.com>
Co-authored-by: CryptoAlgo <64193267+cryptoAlgorithm@users.noreply.github.com>
Co-authored-by: CryptoAlgo <64193267+cryptoAlgorithm@users.noreply.github.com>
@cryptoAlgorithm
Copy link
Member

I'd have preferred if all suggested changes were batched into a single commit, but I guess this works too as it would be eventually squashed for merging.

Sjmarf and others added 3 commits May 14, 2023 09:14
Co-authored-by: CryptoAlgo <64193267+cryptoAlgorithm@users.noreply.github.com>
Conflicts:
	Swiftcord/Views/Message/MessageStickerView.swift
@Sjmarf
Copy link
Contributor Author
Sjmarf commented May 14, 2023

It should be good now, I think 👍

@cryptoAlgorithm
Copy link
Member

It should be good now, I think 👍

Nice, there doesn't appear to be any more lint warnings/errors remaining! However, there still are some references to a local copy of DiscordKit, which shouldn't be committed.

@cryptoAlgorithm
Copy link
Member

Ok, one final issue: looks like the commit hash of DiscordKit in Package.resolved is still pointing to an old commit, it needs to point to at least the commit that adds the required symbols, else building on CI will not succeed. You can follow these instructions #150 (comment) to update the dependancy reference.

@Sjmarf
Copy link
Contributor Author
Sjmarf commented May 14, 2023

Ok, one final issue: looks like the commit hash of DiscordKit in Package.resolved is still pointing to an old commit, it needs to point to at least the commit that adds the required symbols, else building on CI will not succeed. You can follow these instructions #150 (comment) to update the dependancy reference.

Hopefully it's working now 😅

@cryptoAlgorithm cryptoAlgorithm added this pull request to the merge queue May 16, 2023
Merged via the queue into SwiftcordApp:main with commit 7651c43 May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0