An open API service indexing awesome lists of open source software.

https://github.com/sparrowxiao/funplayground

Swift Fun Playground
https://github.com/sparrowxiao/funplayground

algorithm-challenges data-structures json-decoder nsimage playground swift unit-test

Last synced: 5 months ago
JSON representation

Swift Fun Playground

Awesome Lists containing this project

README

          

# FunPlayGround

I upgraded them to Xcode 10 on swift 5 and seperated into iOS and MacOS platform

## Data Structure and Algorithms

1. [Anagrams](https://github.com/sparrowxiao/FunPlayGround/blob/master/Swift-iOS-Anagrams.playground/Contents.swift)

2. [LinkedList](https://github.com/sparrowxiao/FunPlayGround/blob/master/Swift-iOS-LinkedList.playground/Contents.swift)

3. [TripleSum](https://github.com/sparrowxiao/FunPlayGround/blob/master/Swift-iOS-TripleSum.playground/Contents.swift)

4. [SherlockString](https://github.com/sparrowxiao/FunPlayGround/blob/master/Swift-iOS-SherlockString.playground/Contents.swift)

## Image Processing
1. [NSImage Resized by GraphicContext and NSBitmapImageRep](https://github.com/sparrowxiao/FunPlayGround/blob/master/Swift-macOS-image-resize.playground/Contents.swift)

2. [Unit Test the resize function created in Swift-macOS-image-resize.playground. Easily get the measure report to show that the #2 draw method is faster than #1](https://github.com/sparrowxiao/FunPlayGround/tree/master/Swift-macOS-unit-test-image-resize.playground) -- very useful test feature !

## JSON Decoder
1. [A simple example of decoding the format of contents.json for the AppIcon of Assets.xcassets](https://github.com/sparrowxiao/FunPlayGround/blob/master/Swift-macOS-JSON.playground/Contents.swift)