Skip to content

Instantly share code, notes, and snippets.

View vitsky91's full-sized avatar
🏠
Working from home

Vitalii Sydorskyi vitsky91

🏠
Working from home
View GitHub Profile
@vitsky91
vitsky91 / README.md
Created March 23, 2023 10:22 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@vitsky91
vitsky91 / 1apple-app-site-association.markdown
Last active February 10, 2023 12:45 — forked from mat/Readme.markdown
apple-app-site-association —with examples

“apple-app-site-association” file

One file for each domain, both www.example.com and example.com need separate files:

{
    "applinks": {
        "apps": [],
        "details": {
 "9JA89QQLNQ.com.apple.wwdc": {
@vitsky91
vitsky91 / ResultsExtension.swift
Created June 21, 2022 11:26 — forked from ohetzendorfer/ResultsExtension.swift
Realm results extension for transforming to array
import RealmSwift
extension Results {
func toArray() -> [T] {
return self.map{ $0 }
}
}
@vitsky91
vitsky91 / RealmService.swift
Created June 21, 2022 11:25 — forked from ohetzendorfer/RealmService.swift
Collection of realm operations. Requires ResultsExtension.swift
import RealmSwift
internal struct RealmService {
private static var realm: Realm? {
do {
return try Realm()
} catch let error as NSError {
print(error)
return nil