-
Notifications
You must be signed in to change notification settings - Fork 53
PM-10278 PM-10279 PM-10806 - Setup autofill screen for new onboarding flow #979
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
Changes from all commits
600fb91
96f8a77
4e50dcf
01d4a4d
ffdc336
50ac0c3
ee6ee70
107190d
9485a93
cd462b8
837d17e
b9516c1
a4f1091
5621900
b819541
a9f687a
9ddb5a8
2aa2947
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"data" : [ | ||
{ | ||
"filename" : "autofill_ios_dark.gif", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "autofill_ios_dark_placeholder.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"preserves-vector-representation" : true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"data" : [ | ||
{ | ||
"filename" : "autofill_ios_light.gif", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "autofill_ios_light_placeholder.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"preserves-vector-representation" : true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -984,6 +984,15 @@ | |
"Confirm" = "Confirm"; | ||
"ErrorConnectingWithTheDuoServiceUseADifferentTwoStepLoginMethodOrContactDuoForAssistance" = "Error connecting with the Duo service. Use a different two-step login method or contact Duo for assistance."; | ||
"ThePreAuthUrlsCouldNotBeLoadedToStartTheAccountCreation" = "The Pre Auth Urls could not be loaded to start the account creation."; | ||
"FromYourDeviceSettingsToggleOnAutoFillPasswordsAndPasskeys" = "From your device settings, **toggle on autofill Passwords and Passkeys.**"; | ||
"ToggleOffICloudToMakeBitwardenYourDefaultAutoFillSource" = "**Toggle off iCloud Keychain** to make Bitwarden your default autofill source."; | ||
"ToggleOnBitwardenToUseYourSavedPasswordsToLogIntoYourAccounts" = "**Toggle on Bitwarden** to use your saved passwords to log into your accounts."; | ||
"TurnOnAutoFill"= "Turn on autofill"; | ||
"UseAutoFillToLogIntoYourAccountsWithASingleTap" = "Use autofill to log into your accounts with a single tap."; | ||
"NeedHelpCheckOutAutofillHelp" = "Need help? Check out **[autofill help](%1$@)**"; | ||
"TurnOnLater" = "Turn on later"; | ||
"TurnOnAutoFillLaterQuestion" = "Turn on autofill later?"; | ||
"YouCanReturnToCompleteThisStepAnytimeInSettings" = "You can return to complete this step anytime in Settings."; | ||
Comment on lines
+987
to
+995
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 Could you confirm with product on the use of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call out. I just confirmed with the livefront designer that "autofill" is correct but lmk if this is something we should escalate up to the BW team? |
||
"ContinueToBitwarden" = "Continue to Bitwarden"; | ||
"BackToSettings" = "Back to settings"; | ||
"YoureAllSet" = "You're all set!"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import SwiftUI | ||
import WebKit | ||
|
||
// MARK: - GifView | ||
|
||
/// A view that displays a GIF using a `WKWebView`. | ||
/// This view handles the rendering of the GIF asset | ||
/// and ensures that the background is transparent. | ||
/// | ||
struct GifView: UIViewRepresentable { | ||
// MARK: Properties | ||
|
||
/// The `DataAsset` that contains the GIF data to be rendered. | ||
private let gif: DataAsset | ||
|
||
// MARK: Initialization | ||
|
||
/// Initializes the `GifView` with a specific `DataAsset` for the GIF. | ||
/// | ||
/// - Parameter gif: The data asset for the GIF. | ||
/// | ||
init(gif: DataAsset) { | ||
self.gif = gif | ||
} | ||
|
||
func makeUIView(context: Context) -> WKWebView { | ||
let webView = WKWebView() | ||
webView.isOpaque = false | ||
webView.backgroundColor = .clear | ||
webView.scrollView.backgroundColor = .clear | ||
|
||
webView.load( | ||
gif.data.data, | ||
mimeType: "image/gif", | ||
characterEncodingName: "UTF-8", | ||
baseURL: Bundle.main.bundleURL | ||
) | ||
|
||
return webView | ||
} | ||
|
||
func updateUIView(_ uiView: WKWebView, context: Context) { | ||
uiView.reload() | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// MARK: - PasswordAutoFillEffect | ||
|
||
/// Effects handled by the `PasswordAutoFillProcessor`. | ||
/// | ||
enum PasswordAutoFillEffect: Equatable { | ||
/// The password autofill view appeared on screen. | ||
case appeared | ||
|
||
/// Check the autofill status when the view enters the foreground. | ||
case checkAutofillOnForeground | ||
|
||
/// The turn on later button was tapped. | ||
case turnAutoFillOnLaterButtonTapped | ||
} |
Uh oh!
There was an error while loading. Please reload this page.