Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Learn and write Swift code for variables, functions, classes, structs, enums, optionals, closures, protocols, async/await, and SwiftUI.
Learn and write Swift code for variables, functions, classes, structs, enums, optionals, closures, protocols, async/await, and SwiftUI.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Learn and program in Swift - Apple's programming language for iOS, macOS, watchOS, and tvOS.
var nombre = "Juan" // Variable let edad = 25 // Constante var mensaje: String = "Hola" // Con tipo explΓcito
String // Texto Int // Entero Double // Decimal Bool // true/false Array // Lista Dictionary // clave-valor Optional // puede ser nil
func saludar(nombre: String) -> String { return "Hola, \(nombre)!" } // Parametro con valor por defecto func greet(_ name: String = "Mundo") -> String { return "Hola, \(name)" }
class Persona { var nombre: String var edad: Int init(nombre: String, edad: Int) { self.nombre = nombre self.edad = edad } func presentar() -> String { return "Soy \(nombre) y tengo \(edad) aΓ±os" } }
struct Punto { var x: Double var y: Double func distancia() -> Double { return sqrt(x*x + y*y) } }
enum Direction { case north, south, east, west } enum Status { case success(String) case failure(Error) }
var nombre: String? = nil // Puede ser nil // unwrap seguro if let nombre = nombre { print(nombre) } // nil coalescing let nombreDefecto = nombre ?? "Anonimo" // optional chaining let longitud = nombre?.count ?? 0
let suma = { (a: Int, b: Int) -> Int in return a + b } // Syntaxis reducida let multiplicar: (Int, Int) -> Int = { $0 * $1 }
protocol Naming { var name: String { get } func greet() -> String } struct User: Naming { var name: String func greet() -> String { return "Hola, \(name)!" } }
func fetchData() async throws -> Data { let url = URL(string: "https://api.example.com")! let (data, _) = try await URLSession.shared.data(from: url) return data } // Llamar Task { do { let data = try await fetchData() } catch { print("Error: \(error)") } }
import SwiftUI struct ContentView: View { @State private var count = 0 var body: some View { VStack { Text("Contador: \(count)") Button("Incrementar") { count += 1 } } } }
Apple Swift Docs: https://docs.swift.org/swift-book/ Hacking with Swift: https://www.hackingwithswift.com
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.