-
Notifications
You must be signed in to change notification settings - Fork 116
[UI] Redesign File Manager without new logic #259
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: dev
Are you sure you want to change the base?
Conversation
.string | ||
.split(separator: "/") | ||
.map(String.init) | ||
.filter { $0 != "ext" } |
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.
this will filter child ext
folders
case file(File) | ||
case directory(Directory) | ||
|
||
public var id: String { name } |
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.
will conflict with elements from another location (in search view for instance)
ffd340b
to
3f38442
Compare
050cdfe
to
c6aea69
Compare
@AppStorage(.fileManagerShowHiddenFiles) | ||
private var isHiddenFilesShow: Bool = false | ||
|
||
@AppStorage(.fileManagerDisplayType) | ||
private var displayType: DisplayType = .list |
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.
Could you extract this into single Settings structure?
@State private var name = "" | ||
@State private var isNewFile = false | ||
@State private var isNewDirectory = false | ||
@FocusState var isNameFocused: Bool | ||
var namePlaceholder: String { | ||
"\(isNewFile ? "file" : "directory") name" | ||
} |
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.
Can we use separate model for this?
} catch { | ||
self.error = String(describing: error) | ||
self.error = String(describing: error) |
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.
please run linter to fix this kind of typos
74eb51a
to
ab7f3c8
Compare
ab7f3c8
to
e3bc85d
Compare
e3bc85d
to
cbb74ba
Compare
Could you add an screenshot of how it looks? |
No description provided.