Implement Promo Sticker for iOS#402
Open
tkgnm wants to merge 7 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Promo sticker” SwiftUI component to the Source design system package, including sizing, theming, and optional corner-specific rounding for overlay use.
Changes:
- Introduces
PromoStickerViewwith two sizes and an optionalCornerPlacementfor uneven corner rounding. - Adds
PromoStickerThemepresets (blue/red/purple/green) and aPromoStickerSizeenum. - Includes a
#Previewshowcasing variants and corner placements.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
| Sources/Source/PromoSticker/PromoStickerView.swift | New SwiftUI view for rendering the promo sticker, plus previews and corner rounding support. |
| Sources/Source/PromoSticker/PromoStickerTheme.swift | Adds a theme type and preset color themes for the sticker. |
| Sources/Source/PromoSticker/PromoStickerSize.swift | Adds size enum for small/large variants. |
| Sources/Source/PromoSticker/CornerPlacement.swift | Adds corner-placement enum used to derive per-corner radii. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
alidinc
reviewed
Jul 6, 2026
| .background { | ||
| container | ||
| .fill(theme.backgroundColor) | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Figma: https://www.figma.com/design/kSmjgtoTWiG8N7HXxFoGEE/%E2%97%90-Apps-library?node-id=15923-91&p=f&t=ZFSlkDxFTvXxG3EC-0
Here we add the Promo Sticker component and its four default styles. Also added to the Sourcy app. PR of its use in the live app here.
Testing notes/instructions:
A screenshot should suffice in this case but feel free to use the promo sticker builder in the Sourcy app.
Checklist
Recommended reviewers
For pull requests introducing UI changes:
Screenshots or videos:
Component
Sourcy