文件名称:Swift-Presentation:用于呈现 Swift 的 Cocoa 框架
文件大小:76KB
文件格式:ZIP
更新时间:2024-07-22 12:03:43
Swift
快速演示 这个项目生成并部署了一个用 Swift 构建的 Cocoa 框架,它可以从命令行 REPL 或从 Xcode Playground 使用,如下所示: import PresentationKit let pres = Presentation(name: "Tao of Swift") let currentDemo = pres["sets"] if let demo = currentDemo { let URL = demo.URL let tweet = demo.tweet let source = demo.sourceCode demo.explain() demo.copyCode() demo.show() } // The Presentation class can be iterated for demo
【文件预览】:
Swift-Presentation-master
----.gitignore(109B)
----html()
--------UnicodeDemo.swift.html(6KB)
--------AngryDemo.swift.html(11KB)
--------ActiveRecordDemo.swift.html(29KB)
--------JavaScriptDemo.swift.html(8KB)
--------FiltersDemo.swift.html(10KB)
--------GenericsDemo.swift.html(7KB)
--------SetsDemo.swift.html(17KB)
--------CurriedDemo.swift.html(7KB)
--------ObjCDemo.swift.html(5KB)
--------MathDemo.swift.html(14KB)
--------NinetyNineBeersDemo.swift.html(9KB)
----PresentationKit.xcodeproj()
--------project.pbxproj(22KB)
----LICENSE(1KB)
----PresentationKit()
--------Info.plist(937B)
--------BaseDemo.swift(3KB)
--------Demos()
--------Demo.swift(250B)
--------Presentation.swift(2KB)
--------PresentationKit.h(543B)
----README.md(1KB)
----generate_html.sh(1KB)
----Playgrounds()
--------JavaScript.playground()
--------Math.playground()
--------99Beers.playground()
--------Happy.playground()
--------Generics2.playground()
--------ActiveRecord2.playground()
--------Curried.playground()
--------Generics.playground()
--------Trololol.playground()
--------Filters.playground()
--------FuzzyBool.playground()
--------Fibonacci.playground()
--------OOP.playground()
--------ActiveRecord.playground()
--------Sets.playground()
--------BOOL.playground()
--------Vector.playground()
--------Noahs Ark.playground()
--------Color.playground()