CoreText Swift Academy - part 2

In Part 1, I created a label view, where I draw a text in it. Now let's see what happened there: Font & Attibuted String How about font? Font is important part of drawing text. CoreText relies on Attributed String. Simple NSAttributedString() instance without any attribute, defaults to System font.…

CoreText Swift Academy - part 1

Ever wanted to layout letters? implement label view? create text edit component from the ground? bear with me. CoreText is low-level framework for laying out text and handling fonts. Low level like "C language level low", but also like "Font glyph level low". What CoreText can:…

Use consumer rights to refund for faulty MacBook - diary

In February 2020, a keyboard in my MacBook Pro 15.4-inch (model 2018) has broken down. I noticed typical repeating keys. Nothing new for the MacBook with the butterfly keyboard. I also noticed I have screen scratch (that I connect with staingate). I bought it in July 2018, which is…

JSON Coding is what we need 90% of the time

Let's face the truth. If happen you work with any other data format than JSON, you're in a 10% niche (estimates may vary). Even though the default JSONEncoder for Swift Codable is not the fastest - it's soooo convenient to use. Just make a struct or a class conforming to…

URL Bookmarks: yes and no

The way URL Bookmarking is designed and implemented, makes it untrusty source of truth. It can be esily misused, that makes bookmark useless.…