I. Importing in Swift-Jupyter Notebooks
Use the following in first cell (after restarting runtime)
%install-location $cwd/swift-install
%install '.package(url: "https://github.com/rakesh4real/swift-datastructures", from:"0.0.1")' DataStructures
Blank swift-jupyter notebook link
Then, import it using
import DataStructures
II. Importing in SPM
In package.swift
:
// add this in appropriate place
.package(url: "https://github.com/rakesh4real/swift-datastructures", from:"0.0.1")
// add this in appropriate place i.e taget dependancies
.target(
name: "DataStructures",
dependencies: ["DataStructures"]
Then, import it using
import DataStructures
Know more about SPM packages here
link |
Stars: 0 |
Last commit: 4 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics