Template:PT3 SWIFT IOS XCODE: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
 
Line 17: Line 17:


<div class="phd-slide">
<div class="phd-slide">
<h2>Requirements</h2>
<h2>Using Phidgets in Your Programs</h2>


<p>First, make sure you have the following installed:</p>
<p>First, make sure you have the following installed:</p>
Line 24: Line 24:


<p>● <span>[https://developer.apple.com/xcode/ Xcode]</span> from the Mac App Store</p>
<p>● <span>[https://developer.apple.com/xcode/ Xcode]</span> from the Mac App Store</p>
<br />
<p>
You will also need to install <span>[https://cocoapods.org/ CocoaPods]</span> in order to access the Phidget libraries for Swift. You can do this by opening the
terminal and entering the following command:
</p>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_SWIFT_IOS_XCODE/Swift_cocoapods_install.png"></div>
</div>
<div class="phd-slide">
<h2>Using Phidgets in Your Programs</h2>


<p>
<p>
Line 48: Line 35:
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-to-deck-button phd-text-link" data-to-deck="PT3_SWIFT_IOS_XCODE_1">
<div class="phd-to-deck-button phd-text-link" data-to-deck="PT3_SWIFT_IOS_XCODE_1">
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_SWIFT_IOS_XCODE/-x200/50/logo.png"></div>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_SWIFT_IOS_XCODE/-x80/50/logo.png"></div>
<h2>Use our Code Sample</h2>
<h2>Use our Code Sample</h2>
</div>
</div>
Line 54: Line 41:
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-panel phd-flex-column-align-center phd-flex-column-justify-middle">
<div class="phd-to-deck-button phd-text-link" data-to-deck="PT3_SWIFT_IOS_XCODE_2">
<div class="phd-to-deck-button phd-text-link" data-to-deck="PT3_SWIFT_IOS_XCODE_2">
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_SWIFT_IOS_XCODE/-x200/50/newproj.jpg"></div>
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PT3_SWIFT_IOS_XCODE/-x80/50/newproj.jpg"></div>
<h2>New Project</h2>
<h2>New Project</h2>
</div>
</div>

Latest revision as of 22:52, 13 February 2026

iOS with Xcode

Welcome to using Phidgets with Swift! By using Swift, you will have access to the complete Phidget22 API, including events.

Xcode is an integrated development environment for macOS. It is commonly used as a tool for developing software for macOS and iOS applications.

Using Phidgets in Your Programs

First, make sure you have the following installed:

Phidgets Drivers for macOS on your development machine

Xcode from the Mac App Store

There are two ways you can use Phidgets in Xcode. You can either start from a sample project provided by our code sample generator, or you can start a new project from scratch.

Select your preferred method below for instructions:

«
»