-
Notifications
You must be signed in to change notification settings - Fork 9
feat: New view iPadOS #1468
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
base: master
Are you sure you want to change the base?
feat: New view iPadOS #1468
Conversation
8800531
to
8fd9dff
Compare
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.
I did a first review. Code looks good 👍
I played with it on iPad and iPhone, the iPad is promising, the iPhone needs some changes.
I'll DM you more in details my findings.
} | ||
|
||
@objc func buttonMenuClicked(_ sender: UIBarButtonItem) { | ||
if selectedIndexPath != [-1, -1] { |
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.
You could make a named const out of this [-1, -1]
You might also want to consider put this if …
logic behind a var -> Bool
let documentPicker = DriveImportDocumentPickerViewController(forOpeningContentTypes: [UTType.data], asCopy: true) | ||
documentPicker.importDrive = driveFileManager.drive | ||
documentPicker.importDriveDirectory = currentDirectory.freezeIfNeeded() | ||
documentPicker.delegate = mainTabViewController | ||
// documentPicker.delegate = mainTabViewController |
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.
Probably something to do here, or to clean
9dff760
to
20d515a
Compare
# Conflicts: # Tuist/ProjectDescriptionHelpers/Constants.swift
# Conflicts: # kDrive/UI/Controller/Create File/PlusButtonFloatingPanelViewController.swift
# Conflicts: # Tuist/Package.resolved # Tuist/Package.swift
# Conflicts: # kDrive/UI/Controller/Files/SidebarViewController.swift
6b3548f
to
18d6744
Compare
18d6744
to
f23fd6f
Compare
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.
I tested the branch today, the UI looks good both on iPhone and iPad. Good job.
One detail remains before we can merge this branch.
We need to re-enable state restoration, I'll brief you up.
return | ||
} | ||
|
||
guard let previousDriveId = sceneUserInfo[SceneRestorationValues.driveId.rawValue] as? Int, |
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.
We need to re-enable app state restoration before we can merge this branch. I'll brief you up 👍
This reverts commit 5fcff7b.
# Conflicts: # kDrive/UI/Controller/Files/SidebarViewController.swift
f23fd6f
to
22e9d92
Compare
|
No description provided.