Skip to content

Commit

Permalink
Updated example projects
Browse files Browse the repository at this point in the history
  • Loading branch information
khawars committed Dec 9, 2016
1 parent d19afd4 commit 43fc0b1
Show file tree
Hide file tree
Showing 3 changed files with 291 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Examples/Examples/Examples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
C38978261DFB1FDC009E3D81 /* KSTokenField.swift in Sources */ = {isa = PBXBuildFile; fileRef = C38978221DFB1FDC009E3D81 /* KSTokenField.swift */; };
C38978271DFB1FDC009E3D81 /* KSTokenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C38978231DFB1FDC009E3D81 /* KSTokenView.swift */; };
C38978281DFB1FDC009E3D81 /* KSUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = C38978241DFB1FDC009E3D81 /* KSUtils.swift */; };
C389782A1DFB200C009E3D81 /* List.swift in Sources */ = {isa = PBXBuildFile; fileRef = C38978291DFB200C009E3D81 /* List.swift */; };
C38978391DFB2F57009E3D81 /* Autolayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = C38978381DFB2F57009E3D81 /* Autolayout.swift */; };
C389783D1DFB3721009E3D81 /* Programmatically.swift in Sources */ = {isa = PBXBuildFile; fileRef = C389783C1DFB3721009E3D81 /* Programmatically.swift */; };
C389783F1DFB3C41009E3D81 /* StackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C389783E1DFB3C41009E3D81 /* StackView.swift */; };
C38978421DFB3D54009E3D81 /* DBCountry.m in Sources */ = {isa = PBXBuildFile; fileRef = C38978411DFB3D54009E3D81 /* DBCountry.m */; };
C38978451DFB3DB1009E3D81 /* ObjectiveC.m in Sources */ = {isa = PBXBuildFile; fileRef = C38978441DFB3DB1009E3D81 /* ObjectiveC.m */; };
C38978491DFB4A11009E3D81 /* List.swift in Sources */ = {isa = PBXBuildFile; fileRef = C38978481DFB4A11009E3D81 /* List.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -36,7 +36,6 @@
C38978221DFB1FDC009E3D81 /* KSTokenField.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KSTokenField.swift; sourceTree = "<group>"; };
C38978231DFB1FDC009E3D81 /* KSTokenView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KSTokenView.swift; sourceTree = "<group>"; };
C38978241DFB1FDC009E3D81 /* KSUtils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KSUtils.swift; sourceTree = "<group>"; };
C38978291DFB200C009E3D81 /* List.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = List.swift; path = ../List.swift; sourceTree = "<group>"; };
C38978311DFB2DCD009E3D81 /* Examples-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Examples-Bridging-Header.h"; sourceTree = "<group>"; };
C38978381DFB2F57009E3D81 /* Autolayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Autolayout.swift; sourceTree = "<group>"; };
C389783C1DFB3721009E3D81 /* Programmatically.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Programmatically.swift; sourceTree = "<group>"; };
Expand All @@ -45,6 +44,7 @@
C38978411DFB3D54009E3D81 /* DBCountry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DBCountry.m; sourceTree = "<group>"; };
C38978431DFB3DB1009E3D81 /* ObjectiveC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjectiveC.h; sourceTree = "<group>"; };
C38978441DFB3DB1009E3D81 /* ObjectiveC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ObjectiveC.m; sourceTree = "<group>"; };
C38978481DFB4A11009E3D81 /* List.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = List.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -62,9 +62,9 @@
isa = PBXGroup;
children = (
C38978201DFB1FDC009E3D81 /* KSTokenView */,
C38978291DFB200C009E3D81 /* List.swift */,
C38978401DFB3D54009E3D81 /* DBCountry.h */,
C38978411DFB3D54009E3D81 /* DBCountry.m */,
C38978481DFB4A11009E3D81 /* List.swift */,
C389780D1DFB1FB3009E3D81 /* Examples */,
C389780C1DFB1FB3009E3D81 /* Products */,
);
Expand Down Expand Up @@ -186,8 +186,8 @@
C389783F1DFB3C41009E3D81 /* StackView.swift in Sources */,
C38978111DFB1FB3009E3D81 /* ViewController.swift in Sources */,
C38978421DFB3D54009E3D81 /* DBCountry.m in Sources */,
C389782A1DFB200C009E3D81 /* List.swift in Sources */,
C38978451DFB3DB1009E3D81 /* ObjectiveC.m in Sources */,
C38978491DFB4A11009E3D81 /* List.swift in Sources */,
C389780F1DFB1FB3009E3D81 /* AppDelegate.swift in Sources */,
C38978281DFB1FDC009E3D81 /* KSUtils.swift in Sources */,
C38978391DFB2F57009E3D81 /* Autolayout.swift in Sources */,
Expand Down
File renamed without changes.
287 changes: 287 additions & 0 deletions KSTokenView/List.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
//
// List.swift
// SwiftExample
//
// Created by Khawar Shahzad on 01/01/2015.
// Copyright (c) 2015 Khawar Shahzad. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import UIKit

class List: NSObject {
class func names() -> Array <String> {
return ["4th Dimension/4D",
"ABAP",
"ABC",
"ActionScript",
"Ada",
"Agilent VEE",
"Algol",
"Alice",
"Angelscript",
"Apex",
"APL",
"AppleScript",
"Arc",
"Arduino",
"ASP",
"AspectJ",
"Assembly",
"ATLAS",
"Augeas",
"AutoHotkey",
"AutoIt",
"AutoLISP",
"Automator",
"Avenue",
"Awk",
"Bash",
"(Visual) Basic",
"bc",
"BCPL",
"BETA",
"BlitzMax",
"Boo",
"Bourne Shell",
"Bro",
"C",
"C Shell",
"C#",
"C++",
"C++/CLI",
"C-Omega",
"Caml",
"Ceylon",
"CFML",
"cg",
"Ch",
"CHILL",
"CIL",
"CL (OS/400)",
"Clarion",
"Clean",
"Clipper",
"Clojure",
"CLU",
"COBOL",
"Cobra",
"CoffeeScript",
"ColdFusion",
"COMAL",
"Common Lisp",
"Coq",
"cT",
"Curl",
"D",
"Dart",
"DCL",
"DCPU-16 ASM",
"Delphi/Object Pascal",
"DiBOL",
"Dylan",
"E",
"eC",
"Ecl",
"ECMAScript",
"EGL",
"Eiffel",
"Elixir",
"Emacs Lisp",
"Erlang",
"Etoys",
"Euphoria",
"EXEC",
"F#",
"Factor",
"Falcon",
"Fancy",
"Fantom",
"Felix",
"Forth",
"Fortran",
"Fortress",
"(Visual) FoxPro",
"Gambas",
"GNU Octave",
"Go",
"Google AppsScript",
"Gosu",
"Groovy",
"Haskell",
"haXe",
"Heron",
"HPL",
"HyperTalk",
"Icon",
"IDL",
"Inform",
"Informix-4GL",
"INTERCAL",
"Io",
"Ioke",
"J",
"J#",
"JADE",
"Java",
"Java FX Script",
"JavaScript",
"JScript",
"JScript.NET",
"Julia",
"Korn Shell",
"Kotlin",
"LabVIEW",
"Ladder Logic",
"Lasso",
"Limbo",
"Lingo",
"Lisp",
"Logo",
"Logtalk",
"LotusScript",
"LPC",
"Lua",
"Lustre",
"M4",
"MAD",
"Magic",
"Magik",
"Malbolge",
"MANTIS",
"Maple",
"Mathematica",
"MATLAB",
"Max/MSP",
"MAXScript",
"MEL",
"Mercury",
"Mirah",
"Miva",
"ML",
"Monkey",
"Modula-2",
"Modula-3",
"MOO",
"Moto",
"MS-DOS Batch",
"MUMPS",
"NATURAL",
"Nemerle",
"Nimrod",
"NQC",
"NSIS",
"Nu",
"NXT-G",
"Oberon",
"Object Rexx",
"Objective-C",
"Objective-J",
"OCaml",
"Occam",
"ooc",
"Opa",
"OpenCL",
"OpenEdge ABL",
"OPL",
"Oz",
"Paradox",
"Parrot",
"Pascal",
"Perl",
"PHP",
"Pike",
"PILOT",
"PL/I",
"PL/SQL",
"Pliant",
"PostScript",
"POV-Ray",
"PowerBasic",
"PowerScript",
"PowerShell",
"Processing",
"Prolog",
"Puppet",
"Pure Data",
"Python",
"Q",
"R",
"Racket",
"REALBasic",
"REBOL",
"Revolution",
"REXX",
"RPG (OS/400)",
"Ruby",
"Rust",
"S",
"S-PLUS",
"SAS",
"Sather",
"Scala",
"Scheme",
"Scilab",
"Scratch",
"sed",
"Seed7",
"Self",
"Shell",
"SIGNAL",
"Simula",
"Simulink",
"Slate",
"Smalltalk",
"Smarty",
"SPARK",
"SPSS",
"SQR",
"Squeak",
"Squirrel",
"Standard ML",
"Suneido",
"SuperCollider",
"Swift",
"TACL",
"Tcl",
"Tex",
"thinBasic",
"TOM",
"Transact-SQL",
"Turing",
"TypeScript",
"Vala/Genie",
"VBScript",
"Verilog",
"VHDL",
"VimL",
"Visual Basic .NET",
"WebDNA",
"Whitespace",
"X10",
"xBase",
"XBase++",
"Xen",
"XPL",
"XSLT",
"XQuery",
"yacc",
"Yorick",
"Z shell"]
}
}

0 comments on commit 43fc0b1

Please sign in to comment.