-
Notifications
You must be signed in to change notification settings - Fork 1
feat/replace-images-with-abm #1068
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1444fc5
feat(replace AB3 images with ABM): replace images
xameYeoh 3dcbe5b
feat(replace AB3 images with ABM): text copy changes
xameYeoh 3f9dc88
feat(replace AB3 images with ABM > correct spinning loader size): use…
xameYeoh b9cf58d
feat(replace AB3 images with ABM > correct margins on AB flow screens…
xameYeoh 1f96510
feat(replace AB3 images with ABM): center Get Started description
xameYeoh ed27d14
bump 1.25.0(7)
xameYeoh 483be98
fix(SD sync fails sometimes when SD contains both Fixed and Mobile): …
xameYeoh dfdcf54
bump 1.25.1(8)
xameYeoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-47.3 KB
AirCasting/Assets.xcassets/AirBeamOnboard.imageset/onboarding_measure&map2.png
Binary file not shown.
Binary file removed
BIN
-89.5 KB
AirCasting/Assets.xcassets/AirBeamOnboard.imageset/onboarding_measure&map2@3x.png
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.13 MB
(2800%)
AirCasting/Assets.xcassets/Bitmap.imageset/onboarding_welcome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-254 KB
AirCasting/Assets.xcassets/Bitmap.imageset/onboarding_welcome@3x.png
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
AirCasting/Assets.xcassets/airbeam-connecting.imageset/Contents.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "images" : [ | ||
| { | ||
| "idiom" : "universal", | ||
| "scale" : "1x" | ||
| }, | ||
| { | ||
| "idiom" : "universal", | ||
| "scale" : "2x" | ||
| }, | ||
| { | ||
| "filename" : "ab_connecting.png", | ||
| "idiom" : "universal", | ||
| "scale" : "3x" | ||
| } | ||
| ], | ||
| "info" : { | ||
| "author" : "xcode", | ||
| "version" : 1 | ||
| } | ||
| } |
Binary file added
BIN
+590 KB
AirCasting/Assets.xcassets/airbeam-connecting.imageset/ab_connecting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+594 KB
AirCasting/Assets.xcassets/airbeam-unplugged.imageset/ab_unplugged.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-47.5 KB
AirCasting/Assets.xcassets/airbeam-unplugged.imageset/airbeam_cable@2x.png
Binary file not shown.
Binary file removed
BIN
-92.1 KB
AirCasting/Assets.xcassets/airbeam-unplugged.imageset/airbeam_cable@3x.png
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+140 KB
AirCasting/Assets.xcassets/handairBeam.imageset/airbeam_mini_hand_lying.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // Created by Lunar on 4.08.25. | ||
| // | ||
|
|
||
| import SwiftUI | ||
|
|
||
| struct ABCircleAndLoader: View { | ||
| let airbeamImage: String | ||
|
|
||
| init(airbeamImage: String = "airbeam") { | ||
| self.airbeamImage = airbeamImage | ||
| } | ||
|
|
||
| var body: some View { | ||
| syncImage | ||
| .overlay( | ||
| loader | ||
| .padding(28), | ||
| alignment: .bottomTrailing | ||
| ) | ||
| } | ||
|
|
||
| var loader: some View { | ||
| ZStack { | ||
| Color.accentColor | ||
| .frame(width: Constants.Loader.size, height: Constants.Loader.size) | ||
| .clipShape(Circle()) | ||
| ProgressView() | ||
| .progressViewStyle(CircularProgressViewStyle(tint: Color.white)) | ||
| .scaleEffect(2) | ||
| } | ||
| } | ||
|
|
||
| var syncImage: some View { | ||
| Image(airbeamImage) | ||
| .aspectRatio(contentMode: .fit) | ||
| } | ||
| } | ||
|
|
||
| #Preview { | ||
| ABCircleAndLoader() | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| // Created by Lunar on 4.08.25. | ||
| // | ||
|
|
||
| import SwiftUI | ||
| import AirCastingStyling | ||
|
|
||
| struct ProgressFlowAB: View { | ||
| let title: String | ||
| let message: String | ||
| let progress: Float | ||
| let abImage: any View | ||
|
|
||
| let continueButtonOnClickDestination: (any View)? | ||
| let continueButtonOnClick: (@MainActor () -> Void)? | ||
|
|
||
| init(progress: Float, abImage: any View, title: String, message: String, continueButtonOnClickDestination: (any View)? = nil) { | ||
| self.progress = progress | ||
| self.title = title | ||
| self.message = message | ||
| self.abImage = abImage | ||
| self.continueButtonOnClick = nil | ||
| self.continueButtonOnClickDestination = continueButtonOnClickDestination | ||
| } | ||
|
|
||
| init(progress: Float, airbeamImageAsset: String, title: String, message: String, continueButtonOnClickDestination: (any View)? = nil) { | ||
| self.progress = progress | ||
| self.title = title | ||
| self.message = message | ||
| self.abImage = image(airbeamImageAsset) | ||
| self.continueButtonOnClick = nil | ||
| self.continueButtonOnClickDestination = continueButtonOnClickDestination | ||
| } | ||
|
|
||
| init(progress: Float, airbeamImageAsset: String, title: String, message: String, continueButtonOnClick: @escaping @MainActor () -> Void) { | ||
| self.progress = progress | ||
| self.title = title | ||
| self.message = message | ||
| self.abImage = image(airbeamImageAsset) | ||
| self.continueButtonOnClickDestination = nil | ||
| self.continueButtonOnClick = continueButtonOnClick | ||
| } | ||
|
Collaborator
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. Another minor remark: Is there a way to dry it out? not sure if this is the way to go in Swift (having multiple inits, even if they are v. similar). Maybe you can make structs or whatever like and then have one init like but possibly I'm thinking in over languages ;) |
||
|
|
||
| var body: some View { | ||
| VStack(alignment: .leading) { | ||
| ProgressView(value: progress) | ||
| .padding(.bottom, 50) | ||
| AnyView(abImage) | ||
| .frame(maxWidth: .infinity) | ||
| VStack(alignment: .leading, spacing: 15) { | ||
| titleLabel | ||
| .frame(maxWidth: .infinity, alignment: .leading) | ||
| messageLabel | ||
| .frame(maxWidth: .infinity, alignment: .leading) | ||
| } | ||
| .padding(.top) | ||
| .frame(maxWidth: .infinity) | ||
| Spacer() | ||
| if let continueButtonOnClickDestination { | ||
| NavigationLink( | ||
| destination: AnyView(continueButtonOnClickDestination), | ||
| label: { | ||
| Text(Strings.Commons.continue) | ||
| .font(Fonts.muliBoldHeading1) | ||
| .frame(maxWidth: .infinity) | ||
| }) | ||
| .buttonStyle(BlueButtonStyle()) | ||
|
|
||
| } else if let continueButtonOnClick { | ||
| Button(action: continueButtonOnClick) { | ||
| Text(Strings.Commons.continue) | ||
| .font(Fonts.muliBoldHeading1) | ||
| .frame(maxWidth: .infinity) | ||
| } | ||
| .buttonStyle(BlueButtonStyle()) | ||
| } | ||
| } | ||
| .frame(maxWidth: .infinity) | ||
| .padding() | ||
| .background(Color.aircastingBackground.ignoresSafeArea()) | ||
| } | ||
|
|
||
| var titleLabel: some View { | ||
| Text(title) | ||
| .font(Fonts.moderateBoldTitle3) | ||
| .foregroundColor(.accentColor) | ||
| } | ||
|
|
||
| var messageLabel: some View { | ||
| Text(message) | ||
| .font(Fonts.moderateRegularHeading1) | ||
| .foregroundColor(.aircastingGray) | ||
| } | ||
| } | ||
|
|
||
| private func image(_ imageAsset: String) -> any View { | ||
| Image(imageAsset) | ||
| .aspectRatio(contentMode: .fit) | ||
| } | ||
|
|
||
| #Preview("AB Loading") { | ||
| ProgressFlowAB(progress: 0.4, abImage: ABCircleAndLoader(), title: Strings.SDSyncRootView.title, message: Strings.SDSyncRootView.message) | ||
| } | ||
|
|
||
| #Preview("AB Ready") { | ||
| ProgressFlowAB(progress: 0.4, airbeamImageAsset: "4-connected", title: Strings.SDSyncRootView.title, message: Strings.SDSyncRootView.message, continueButtonOnClickDestination: Text("test")) | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
not very important but is there sth like alt text for ios? like accessibility desc or sth