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

feat: 🎸 HCPSDKFIORIUIKIT-2920 Add position parameter to Toast Message #975

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

JuliaSchnSAP
Copy link
Collaborator

No description provided.

@JuliaSchnSAP JuliaSchnSAP requested a review from a team as a code owner February 8, 2025 01:49
@JuliaSchnSAP JuliaSchnSAP requested review from billzhou0223 and removed request for a team February 8, 2025 01:49
@@ -11,21 +11,50 @@ import SwiftUI
4. Move this file to `_FioriStyles` folder under `FioriSwiftUICore`.
*/

public enum ToastMessagePosition: String, CaseIterable, Identifiable {
Copy link
Contributor

Choose a reason for hiding this comment

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

add API doc: what these position alignment mean visually, relative to the reference view.

@@ -132,15 +167,18 @@ public extension View {
/// - icon: Icon image in front of the text. The default is a checkmark icon.
/// - title: The message to display.
/// - duration: The duration in seconds for which the toast message is shown. The default is `1`.
/// - position: The position of the toast message relative to its parent view. The default is `.center`.
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the spacing btw toast message and parent view ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is no spacing

Copy link
Contributor

Choose a reason for hiding this comment

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

Since there will be use cases where spacing is needed, let's provide a new property to allow the spacing.

Copy link
Contributor

@dyongxu dyongxu left a comment

Choose a reason for hiding this comment

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

comments inlined

@JuliaSchnSAP JuliaSchnSAP changed the title feat: 🎸 Add position parameter to Toast Message feat: 🎸 HCPSDKFIORIUIKIT-2920 Add position parameter to Toast Message Feb 25, 2025
@dyongxu dyongxu requested a review from shengxu7 February 25, 2025 19:03
@shengxu7
Copy link
Member

@JuliaSchnSAP

  1. can you support a toast message without an icon?
  2. can you provide a exact same toast message like this screenshot ?
    Screenshot 2025-02-26 at 11 07 28 AM

Figma link: https://www.figma.com/design/MPvLjDv3b3HQoTAOIkjF8i/Joule-Mobile---Long-Running-User-Request-(iOS)?node-id=5967-4427&t=u6FWRtqCfp293q6m-0

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