Hot answers tagged

13

Silver runs on Windows and allows you to compile Swift code to Java and .NET. Alternatively, you can compile Swift code online in a web browser on any platform, including Windows. Try: RunSwift SwiftStub


5

Swift is build on the same LLVM Compiler, Objective-C is build on. (See Wikipedia) So you need an Obj-C environment. And that is a bit complicated, but possible. It would be much easier to build a Virtual Machine or a Hackintosh. And as you can read from this answer, it is not a good Idea coding Obj-C (or Swift) on a PC.


4

I've found SwiftLint and Tailor, which both enforce Swift style and convention best practices. Both can be run from the command line as an external tool, or integrated with Xcode. Both are well-maintained and Tailor is cross-platform. Both have customizable rules engines. Tailor looks more "official," with a more stable dev team, but it's hard to say ...


3

Our DMS Software Reengineering Toolkit can do this. It is actually a program transformation system that parses source text, builds ASTs, enables AST navigation, modification and construction of new ASTs, and then can prettyprint such ASTs back to compilable source code. Many transformations on the ASTs can be written in using the notation of that language, ...


3

Swift for Windows now available on Microsoft Codeplex. https://swiftforwindows.codeplex.com/ System Requirement - Visual C++ Redistributable for Visual Studio 2015. Or you can use official swift version on Bash On Ubuntu On Windows 10 (Anniversary Update). Checkout full step-wise guide here - Instal Swift 3.0 on Windows 10 Anniversary Update


2

Apple shipped Foundation and other ObjC libraries with Safari, but Safari for Windows stopped at 5.1.7. But then iTunes was rewritten to use ObjC libraries, and they are pretty available and up-to-date. There are two problems, however. First, it is not legal to bundle "Application Support.msi" (use 7zip to unpack iTunes installer, and you will find this file)...


2

You could take a look at: SwiftLint - Gratis & Open Source Atom Linter + SwiftC plugin - Also Gratis & Open Source but requires Atom so may not suit your usage.


2

Both Netbeans and Eclipse are available on my Raspbian stretch running Pi. Not sure which versions though. That said, running such a full IDE (esp. one written in Java) on a limited power SoC or embedded board will likely leave a lot to be desired. What I recommend instead is to use geany - basically a fantastic text editor. With a console built in. And ...


1

Charts framework is a great tool for drawing charts. You should study it perfectly. I used an old code in our project (copy/paste), so it caused some problems for drawing xAxis labels in my chart. Just comment below line: horizontalBarChartView.xAxis.drawLabelsEnabled = false


1

Apple made Swift to open source last year. Swift for Windows port (forked, incomplete) can be downloaded at swift windows


Only top voted, non community-wiki answers of a minimum length are eligible