Skip to content

thinkySide/ThinkyKit

Repository files navigation

ThinkyKit

한톨의 효율적인 iOS 개발을 위한 각종 유틸 라이브러리

1. Safe Subscript

배열의 인덱스가 범위를 벗어나는 경우 nil을 반환하는 안전한 서브스크립트입니다.

let array = [1, 2, 3]
array[safe: 2] // 3
array[safe: 3] // nil

2. HEX Color

HEX 값을 이용해 UIColor와 SwiftUI Color를 간편하게 생성할 수 있습니다.

// UIKit
let redColor = UIColor(hex: "#FF0000")
let greenColor = UIColor(hex: "#00FF00")

// SwiftUI
let blueColor = Color(hex: "#0000FF")
let purpleColor = Color(hex: "#800080")

About

📦 효율적인 iOS 개발을 위한 각종 유틸 라이브러리

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages