Skip to content
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

Ios 9356 rename crouton to snackbar #427

Open
wants to merge 7 commits into
base: IOS-9356-fix-crouton
Choose a base branch
from

Conversation

L-Trujillo26
Copy link
Contributor

@L-Trujillo26 L-Trujillo26 commented Feb 20, 2025

🎟️ Jira ticket

https://jira.tid.es/browse/IOS-9356

πŸ₯… What's the goal?

Rename Crouton component to Snackbar

🚧 How do we do it?

Rename the component.
Update readme.

:

  • Test renaming will be completed in a separate PR using only one brand.
  • Models(like CroutonConfig) will be unified in another PR.

πŸ§ͺ How can I verify this?

Catalog -> snackbar

snackbar.mov

πŸ‘ AppCenter build

@L-Trujillo26 L-Trujillo26 changed the base branch from main to IOS-9356-fix-crouton February 20, 2025 13:00
@L-Trujillo26 L-Trujillo26 marked this pull request as ready for review February 20, 2025 14:53
import UIKit

// Protocol implemented by view controllers that want to Snackbar in a very specific view
@objc public protocol CustomSnackbarContainer {
Copy link
Contributor

Choose a reason for hiding this comment

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

new??? in that case, remove @objc pls

Copy link
Contributor Author

@L-Trujillo26 L-Trujillo26 Feb 21, 2025

Choose a reason for hiding this comment

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

Just moved and renamed the file, no logic changes in this PR.

File in main:

`
import UIKit

// Protocol implemented by view controllers that want to show croutons in a very specific view
@objc public protocol CustomCroutonContainer {
var customCroutonContainerView: UIView { get }
}
`


| `Info` | `Critical` |
|-----------------------------------------------|---------------------------------------------------|
| ![Info](./docs/images/snackbar-style-info.png) | ![Info](./docs/images/snackbar-style-critical.png) |
Copy link
Contributor

Choose a reason for hiding this comment

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

Info link looks broken

@@ -20,29 +20,29 @@ public class CroutonController: NSObject {
public typealias DismissHandlerBlock = (SnackbarDismissReason) -> Void
public typealias DidTapActionBlock = () -> Void

private var croutonViewList = [OngoingCrouton]()
private var SnackbarViewList = [OngoingSnackbar]()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private var SnackbarViewList = [OngoingSnackbar]()
private var snackbarViewList = [OngoingSnackbar]()

Copy link
Contributor

@dhidalgofadrique dhidalgofadrique left a comment

Choose a reason for hiding this comment

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

goodJobEddieMurphy

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.

3 participants