Skip to content
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ struct WhatsNewPageViewExample: View {
WhatsNewPage(title: "Track your deal pipeline from anywhere", description: "You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand.")
// title and small image (manually resized)
WhatsNewPage(detailImage: {
FioriIcon.illustrations.beforeSearchDot.resizable()
FioriIcon.illustrations.userHasSignedUpSmall.resizable()
}, title: {
Text("Track your deal pipeline from anywhere")
}, imageSize: CGSize(width: 80, height: 80))
// title and small image (isImageExpanded = true)
WhatsNewPage(detailImage: FioriIcon.illustrations.beforeSearchDot.resizable(), title: "Track your deal pipeline from anywhere", isImageExpanded: true)
WhatsNewPage(detailImage: FioriIcon.illustrations.userHasSignedUpSmall.resizable(), title: "Track your deal pipeline from anywhere", isImageExpanded: true)
// title and small image (isImageExpanded = true, image size set)
WhatsNewPage(detailImage: {
FioriIcon.illustrations.beforeSearchDot.resizable()
FioriIcon.illustrations.userHasSignedUpSmall.resizable()
}, title: {
Text("Track your deal pipeline from anywhere")
}, imageSize: CGSize(width: 100, height: 200),
isImageExpanded: true)
// title, description and medium image
WhatsNewPage(detailImage: FioriIcon.illustrations.successScreenDialog.resizable(), title: "Track your deal pipeline from anywhere", description: "You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand.", isImageExpanded: false)
WhatsNewPage(detailImage: FioriIcon.illustrations.userHasSignedUpSmall.resizable(), title: "Track your deal pipeline from anywhere", description: "You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand.", isImageExpanded: false)
// title, description and medium image (isImageExpanded = true)
WhatsNewPage(detailImage: FioriIcon.illustrations.successScreenDialog.resizable(), title: "Track your deal pipeline from anywhere", description: "You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand.", isImageExpanded: true)
WhatsNewPage(detailImage: FioriIcon.illustrations.userHasSignedUpSmall.resizable(), title: "Track your deal pipeline from anywhere", description: "You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track. You can visualize the health of your entire sales pipeline right from the palm of your hand.", isImageExpanded: true)
// list view
WhatsNewListItem(detailImage: Image("wheel").resizable(), title: "Track your deal pipeline from anywhere", subtitle: "You can visualize the health of your entire sales pipeline right from the palm of your hand. Easily sort, filter, and view activity and track details and changes in real time so you can stay on top of deals and instantly spot when others go off track.")
VStack(alignment: .leading, spacing: 30) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct WritingAssistantExample: View {
if withLoading { self.isLoading = true }
try? await Task.sleep(nanoseconds: 1500000000)
if withLoading { self.isLoading = false }
return .failure(WAError(detailImage: FioriIcon.illustrations.simpleConnectionSpot, title: "Error Title", description: "Error Description", action: self.illustratedMessageAction, detailImageSize: .small))
return .failure(WAError(detailImage: FioriIcon.illustrations.unableToUploadSmall, title: "Error Title", description: "Error Description", action: self.illustratedMessageAction, detailImageSize: .small))
} else {
if menu == .analyzeText {
return .customDestination(self.customDestination)
Expand All @@ -60,7 +60,7 @@ struct WritingAssistantExample: View {
private func submitFeedback(state: AIUserFeedbackVoteState, values: [String]) async -> WAFeedbackResult {
try? await Task.sleep(nanoseconds: 1500000000)
if self.errorOccurred {
return .failure(WAError(detailImage: FioriIcon.illustrations.simpleConnectionSpot, title: "Error Title", description: "Error Description", action: self.illustratedMessageAction, detailImageSize: .small))
return .failure(WAError(detailImage: FioriIcon.illustrations.unableToUploadSmall, title: "Error Title", description: "Error Description", action: self.illustratedMessageAction, detailImageSize: .small))
} else {
return .success
}
Expand Down
Loading
Loading