Entries tagged with swift

Deploy Swift WebApps on Amazon EC2 Container Services (ECS)

TL;DR

Developing Web applications with Swift is pretty fun 🤘

We can run them on Amazon EC2 Container Services and I tried to build light-weight Docker image to deploy more faster.

Here is an example project I made, check this out :point_down:

Read On 

Generate NSColor / UIColor based on Swift String

I’ve published a Swift library ColorHash, that generates UIColor and NSColor based on given string.

ngs/color-hash.swift

import ColorHash

let str = "こんにちは、世界"
let saturation = CGFloat(0.30)
let lightness = CGFloat(0.70)

ColorHash(str, [saturation], [lightness]).color

This is a Swift port of a JavaScript library Color Hash.

Read On 

Copy UIColor / NSColor initializer code from Sketch app

I’ve published Copy Swift Code, a Sketch app plugin for generating UIColor and NSColor initializer Swift code from fill color of selected layers.

ngs/sketchplugin-swift-color

Read On 

Apply UIAppearance immediately on the screen

I was looking for how to apply changes made with UIAppearance’s proxy method immediately.

I found a solution in a library UISS, that handles Stylesheets written with JSON format.

Read On