-
Notifications
You must be signed in to change notification settings - Fork 59
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
base: main
Are you sure you want to change the base?
Conversation
@@ -11,21 +11,50 @@ import SwiftUI | |||
4. Move this file to `_FioriStyles` folder under `FioriSwiftUICore`. | |||
*/ | |||
|
|||
public enum ToastMessagePosition: String, CaseIterable, Identifiable { |
There was a problem hiding this comment.
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`. |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no spacing
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments inlined
…ion' into toast-message-position
…ion' into toast-message-position
…ion' into toast-message-position
No description provided.