mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Use old Previews syntax
This commit is contained in:
parent
f4c310846a
commit
d5464186af
@ -158,8 +158,10 @@ struct ExportSettings: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
struct ExportSettings_Previews: PreviewProvider {
|
||||||
NavigationView {
|
static var previews: some View {
|
||||||
ExportSettings()
|
NavigationView {
|
||||||
|
ExportSettings()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -171,17 +171,19 @@ struct ImportSettingsAccountRow: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
struct ImportSettingsAccountRow_Previews: PreviewProvider {
|
||||||
let fileModel = ImportSettingsFileModel(url: URL(string: "https://gist.githubusercontent.com/arekf/578668969c9fdef1b3828bea864c3956/raw/f794a95a20261bcb1145e656c8dda00bea339e2a/yattee-recents.yatteesettings")!)
|
static var previews: some View {
|
||||||
|
let fileModel = ImportSettingsFileModel(url: URL(string: "https://gist.githubusercontent.com/arekf/578668969c9fdef1b3828bea864c3956/raw/f794a95a20261bcb1145e656c8dda00bea339e2a/yattee-recents.yatteesettings")!)
|
||||||
|
|
||||||
return List {
|
return List {
|
||||||
ImportSettingsAccountRow(
|
ImportSettingsAccountRow(
|
||||||
account: .init(name: "arekf", urlString: "https://instance.com", username: "arekf"),
|
account: .init(name: "arekf", urlString: "https://instance.com", username: "arekf"),
|
||||||
fileModel: fileModel
|
fileModel: fileModel
|
||||||
)
|
)
|
||||||
ImportSettingsAccountRow(
|
ImportSettingsAccountRow(
|
||||||
account: .init(name: "arekf", urlString: "https://instance.com", username: "arekf", password: "a"),
|
account: .init(name: "arekf", urlString: "https://instance.com", username: "arekf", password: "a"),
|
||||||
fileModel: fileModel
|
fileModel: fileModel
|
||||||
)
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -255,6 +255,8 @@ struct ImportSettingsSheetView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
struct ImportSettingsSheetView_Previews: PreviewProvider {
|
||||||
ImportSettingsSheetView(settingsFile: .constant(URL(string: "https://gist.githubusercontent.com/arekf/578668969c9fdef1b3828bea864c3956/raw/f794a95a20261bcb1145e656c8dda00bea339e2a/yattee-recents.yatteesettings")!))
|
static var previews: some View {
|
||||||
|
ImportSettingsSheetView(settingsFile: .constant(URL(string: "https://gist.githubusercontent.com/arekf/578668969c9fdef1b3828bea864c3956/raw/f794a95a20261bcb1145e656c8dda00bea339e2a/yattee-recents.yatteesettings")!))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,12 +14,14 @@ struct ImportSettingsSheetViewModifier: ViewModifier {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
struct ImportSettingsSheetViewModifier_Previews: PreviewProvider {
|
||||||
Text("")
|
static var previews: some View {
|
||||||
.modifier(
|
Text("")
|
||||||
ImportSettingsSheetViewModifier(
|
.modifier(
|
||||||
isPresented: .constant(true),
|
ImportSettingsSheetViewModifier(
|
||||||
settingsFile: .constant(URL(string: "https://gist.githubusercontent.com/arekf/87b4d6702755b01139431dcb809f9fdc/raw/7bb5cdba3ffc0c479f5260430ddc43c4a79a7a72/yattee-177-iPhone.yatteesettings")!)
|
isPresented: .constant(true),
|
||||||
|
settingsFile: .constant(URL(string: "https://gist.githubusercontent.com/arekf/87b4d6702755b01139431dcb809f9fdc/raw/7bb5cdba3ffc0c479f5260430ddc43c4a79a7a72/yattee-177-iPhone.yatteesettings")!)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user