Choose a server from SteamServer.defaultServers or fetch the latest Steam server list using SteamServersFetcher.
Instantiate a SteamService and connect to the chosen server (connect).
login
Receive user information and friends list, and use any functions that require user authentication (addFriend, removeFriend etc) as desired.
Protobufs
Several Steam Protobufs from SteamDatabase/Protobufs and their converted Swift models (via Swift Protobuf) are bundled with this library, as Swift packages do not currently support running scripts/custom build phase actions (which would ideally be used to clone the Protobufs repo, convert and copy the relevant files).
License
This library is released under the MIT license. See the LICENSE file for more information.
💨 Steam
A Swift package to directly interact with Steam.
Installation
Swift Package Manager (Xcode):
Swift Package Manager (standalone):
Add the following to the
dependencies
of yourPackage.swift
file:.package(url: "https://github.com/sebj/Steam.git", ...)
Usage
SteamServer.defaultServers
or fetch the latest Steam server list usingSteamServersFetcher
.SteamService
and connect to the chosen server (connect
).login
addFriend
,removeFriend
etc) as desired.Protobufs
Several Steam Protobufs from SteamDatabase/Protobufs and their converted Swift models (via Swift Protobuf) are bundled with this library, as Swift packages do not currently support running scripts/custom build phase actions (which would ideally be used to clone the Protobufs repo, convert and copy the relevant files).
License
This library is released under the MIT license. See the LICENSE file for more information.
Related Libraries