When a search result is selected, there is usually a delay due to the debrid dance of API routes for grabbing a download link to stream. Add a loading indicator and prevent any other tasks from loading unless the user cancels it. iOS 14.5 was a huge update which added many QoL SwiftUI changes that are consistent to modern iOS versions. However, Ferrite supports iOS versions less than 14.5, mainly 14.3. More fixes had to be added to make sure UI is consistent across all OS versions. Signed-off-by: kingbri <bdashore3@gmail.com>
32 lines
586 B
Swift
32 lines
586 B
Swift
//
|
|
// SettingsModels.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 8/11/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public enum DefaultMagnetActionType: Int, CaseIterable {
|
|
// Let the user choose
|
|
case none = 0
|
|
|
|
// Open in actions come first
|
|
case webtor = 1
|
|
|
|
// Sharing actions come last
|
|
case shareMagnet = 2
|
|
}
|
|
|
|
public enum DefaultDebridActionType: Int, CaseIterable {
|
|
// Let the user choose
|
|
case none = 0
|
|
|
|
// Open in actions come first
|
|
case outplayer = 1
|
|
case vlc = 2
|
|
case infuse = 3
|
|
|
|
// Sharing actions come last
|
|
case shareDownload = 4
|
|
}
|