-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Applying MVVM and Moya on some screens, Changed filter structure #20
Conversation
init JellyfinAPI
Implementing MVVM
LibraryView NavigationLink Recovery
All library requests return 401 |
It is normal on the simulator, but it seems to return 401 on the actual device. |
Try removing the backslashes from the authheader |
I checked the authHeader, but there was no backslash.
The curious thing is that it works fine in the simulator. |
When it gets printed in the console - there were backslashes. Let me finish working on this part and i’ll see
…Sent from my iPhone
On May 27, 2021, at 10:59 AM, PangMo5 ***@***.***> wrote:
Try removing the backslashes from the authheader
I checked the authHeader, but there was no backslash.
MediaBrowser Client="SwiftFin", Device="PangMo5’s iPad", DeviceId="ED8E8ABB-B796-41BC-AFB7-1A2895C0370A", Version="1.0.0", Token="xxxxxxxxxxxxxxxxxxxxxxxx"
The curious thing is that it works fine in the simulator.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I found the cause. |
Try escaping the Device name - I'd rather keep it in as it allows users to see the device name in the web dashboard |
Yes it is important. |
I solved it by found the relevant code in the Kotlin SDK. |
Please resolve the merge conflict in project.pbxproj and rebase :) |
Resolved conflic. Please merge it. |
Please don't merge this yet. |
Okay, take your time :) |
add LazyView
@acvigue fixed all issues, Please merge it :D |
Hey! Thanks. I'll look at this when I get off work tmrw. |
what exactly is LazyView.swift? |
Like other Views in SwiftUI, NavigationLink is not lazy. |
i see - what problems occur without lazyview. also if the extension is only used in one file, it shouldnt be abstracted away for the sole purpose of abstraction IMO |
It doesn't matter if you don't abstract it in a personal project. |
lgtm! |
will merge once buttons are respaced :) |
What does the spacing of the buttons mean? Are you talking about the spacing of the navigation buttons? |
GlobalData conform Equatable Change the conditions for some screens onAppear
# Conflicts: # JellyfinPlayer/EpisodeItemView.swift # JellyfinPlayer/LibraryView.swift # JellyfinPlayer/MovieItemView.swift # JellyfinPlayer/SeasonItemView.swift
Conflict occurred in LibraryView during Merge. |
lgtm |
Changed
Change a specific toolbar to a navigation bar item.Known issues
- UI cannot be updated after loading when entering LibraryView in MovieItemView and EpisodeItemView.-> Life cycle issues of SwiftUI(NavigationLink) solved as Lazy(Since it works normally when entering from another screen, there seems to be a problem in the life cycle of the MovieItemView and EpisodeItemView.)
And it seems that there are a lot of @State, @EnvironmentObject, and ObservableObject that are not currently used in a lot of code. It would be nice to increase the performance by refactoring the related code.
I'm sorry that the commits weren't cleaned up as I modified a lot of code at once.