Skip to content

Instantly share code, notes, and snippets.

View ikhvorost's full-sized avatar

Iurii Khvorost ikhvorost

  • Dish Network
View GitHub Profile
@ikhvorost
ikhvorost / swift-doc-coverage.json
Last active November 21, 2022 21:04
Swift Doc Coverage
{"schemaVersion": 1,"label":"swift-doc-coverage","message":"0%","color":"red"}
typealias Swift_Demangle = @convention(c) (_ mangledName: UnsafePointer<UInt8>?,
_ mangledNameLength: Int,
_ outputBuffer: UnsafeMutablePointer<UInt8>?,
_ outputBufferSize: UnsafeMutablePointer<Int>?,
_ flags: UInt32) -> UnsafeMutablePointer<Int8>?
func swift_demangle(_ mangled: String) -> String? {
let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
if let sym = dlsym(RTLD_DEFAULT, "swift_demangle") {
let f = unsafeBitCast(sym, to: Swift_Demangle.self)
@ikhvorost
ikhvorost / LocalNetworkPrivacy.swift
Last active December 1, 2021 01:36
Checking Local Network Privacy access state for iOS 14
//
// LocalNetworkPrivacy
//
// Created by Iurii Khvorost <iurii.khvorost@gmail.com> on 2021/02/04.
// Copyright © 2021 Iurii Khvorost. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell