Swift GUI Development without Xcode

Post on 12-Apr-2017

92 views 2 download

transcript

Swift without Xcode - GUI EditionSwiftAustin 17-04-05

Use CasesLinux vs Mac

"I hate Xcode"

Remote Access

Possibly to Swift code installed in a Cloud

SourceKit"What is SourceKit?"

How do you get it?

With Xcode

From source (takes a while)

Now in Docker

SublimeOS X only for SourceKit

Could probably be made to work with Linux easier now

VS CodeSDE

Installable in VSCode

Setup scripts at https://github.com/felix91gr/swift-linuxSetup

Vagrant setup at https://github.com/SwiftAustin/LinuxSwiftGUISetup

OS X support tricky (see issue #33)

Development slowing down

VagrantSetup and config files at https://github.com/SwiftAustin/LinuxSwiftGUISetup

AutocompleteVariable and method completion, context aware

Popup Type informationHover over a variable to get its type Matters more in Swift than in many languages

DebuggingIt’s a start, but does a poor job of following modules (#7) Console not hooked up, yet (#22)

Linux "Instruments"valgrind is the primary tool

Poor, poor substitute for Instruments

But, some GUIs

KCacheGrindHandles valgrind’s “CallGrind” tool

Looks for CPU usage and spikes

Valkyriememcheck tool

Better than text, but not by too much

massif visualizerFor memory usage tracking