← All skills
Tencent SkillHub Β· Developer Tools

swift-programming

Learn and write Swift code for variables, functions, classes, structs, enums, optionals, closures, protocols, async/await, and SwiftUI.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Learn and write Swift code for variables, functions, classes, structs, enums, optionals, closures, protocols, async/await, and SwiftUI.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 13 sections Open source page

Swift Programming Skill

Learn and program in Swift - Apple's programming language for iOS, macOS, watchOS, and tvOS.

Variables & Constants

var nombre = "Juan" // Variable let edad = 25 // Constante var mensaje: String = "Hola" // Con tipo explΓ­cito

Tipos de Datos

String // Texto Int // Entero Double // Decimal Bool // true/false Array // Lista Dictionary // clave-valor Optional // puede ser nil

Funciones

func saludar(nombre: String) -> String { return "Hola, \(nombre)!" } // Parametro con valor por defecto func greet(_ name: String = "Mundo") -> String { return "Hola, \(name)" }

Clases

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" } }

Estructuras

struct Punto { var x: Double var y: Double func distancia() -> Double { return sqrt(x*x + y*y) } }

Enums

enum Direction { case north, south, east, west } enum Status { case success(String) case failure(Error) }

Optionals

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

Closures

let suma = { (a: Int, b: Int) -> Int in return a + b } // Syntaxis reducida let multiplicar: (Int, Int) -> Int = { $0 * $1 }

Protocolos

protocol Naming { var name: String { get } func greet() -> String } struct User: Naming { var name: String func greet() -> String { return "Hola, \(name)!" } }

Async/Await

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)") } }

SwiftUI Basics

import SwiftUI struct ContentView: View { @State private var count = 0 var body: some View { VStack { Text("Contador: \(count)") Button("Incrementar") { count += 1 } } } }

Recursos

Apple Swift Docs: https://docs.swift.org/swift-book/ Hacking with Swift: https://www.hackingwithswift.com

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs
  • SKILL.md Primary doc