28 Feb 2019

Convert Dictionary to JSON in Swift

p print(String(data: try! JSONSerialization.data(withJSONObject: json, options: .prettyPrinted), encoding: .utf8 )!)

Read more

20 Feb 2019

Swift is like Kotlin

For those who knows Swift and want to try Kotlin.

Swift is like Kotlin

Read more

31 Jan 2019

print function name in Swift

just use:

 print("\(#function)")

Read more

30 Jan 2019

CocoaPods integration with obj-c project linking issues

Issues with linking between CocoaPods swift based libraries and Obj-C based project can happens because project configuration does not contains information about location of swift lib. Just help Xcode to find it.

Put "$(TOOLCHAIN DIR)/usr/lib/swift/$(PLATFORM_NAME)" into the Linking Search Path

Read more

18 Jan 2019

lldb view info

command alias se expression -O -l swift --

se let $view = unsafeBitCast({%address%}, to: UIView.self)

se $view.layer.cornerRadius

Read more

06 Dec 2018

Falsehoods programmers believe about names

FALSEHOODS PROGRAMMERS BELIEVE ABOUT NAMES

Read more

26 Nov 2018

For any reason

¯\(ツ)

(╯°□°)╯︵ ┻━┻

Read more