Skip to content

Instantly share code, notes, and snippets.

View vitsky91's full-sized avatar
😶‍🌫️
Investigate and find

Vitalii Sydorskyi vitsky91

😶‍🌫️
Investigate and find
View GitHub Profile
@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
@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 / 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 / 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 / ios-font-sizes.swift
Created September 25, 2024 14:04 — forked from zacwest/ios-font-sizes.swift
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
@vitsky91
vitsky91 / ZSWFileTester.m
Created September 26, 2024 14:21 — forked from zacwest/ZSWFileTester.m
Saving optimal JPEGs
//
// ZSWFileTester.m
// Image Size Test
//
// Created by Zachary West on 3/4/14.
// Copyright (c) 2014 Zachary West. All rights reserved.
//
#import "ZSWFileTester.h"