- Télécharger l'app gratuite Scriptable.
- Coller le code de
vaccin.js
dans un nouveau script Scriptable - Configurer le script (instructions dans le code)
- Ajouter un widget Scriptable
- Configurer le widget en sélectionnant votre script
struct User: Encodable { | |
let firstName: String | |
let lastName: String | |
let admin: Bool | |
} | |
final class UserProtocol: URLProtocol { | |
override class func canInit(with request: URLRequest) -> Bool { | |
return true // Customize here |
vaccin.js
dans un nouveau script Scriptable// | |
// DarwinNotificationCenter.swift | |
// | |
// Copyright © 2017 WeTransfer. All rights reserved. | |
// | |
// Source: https://gist.github.com/florentmorin/35b15837cd4fb2a2a0630dbdf41d09aa | |
// Original: https://gist.github.com/AvdLee/07de0b0fe7dbc351541ab817b9eb6c1c | |
import Foundation |
// | |
// ContentView.swift | |
// SwiftUIBurgerMenu | |
// | |
// Created by Florent Morin on 02/06/2021. | |
// | |
import SwiftUI | |
import Foundation |
import SwiftUI | |
/// Main Window content | |
private struct MainView: View { | |
@Environment(\.appState) private var appState | |
@Environment(\.openWindow) private var openWindow | |
var body: some View { | |
NavigationStack { | |
VStack { |