Skip to content

Instantly share code, notes, and snippets.

View ozgurshn's full-sized avatar

Ozgur Sahin ozgurshn

View GitHub Profile
@ozgurshn
ozgurshn / RectangleObservationProjection.swift
Created May 28, 2020 13:41
Vision normalized rectangle detection projection in Swift
func observationToRect(box:VNRectangleObservation)->CGRect
{
let xCord = box.topLeft.x * imageView.frame.size.width
let yCord = (1 - box.topLeft.y) * imageView.frame.size.height
let width = (box.topRight.x - box.bottomLeft.x) * imageView.frame.size.width
let height = (box.topLeft.y - box.bottomLeft.y) * imageView.frame.size.height
return CGRect(x: xCord, y: yCord, width: width, height: height)
}
@ozgurshn
ozgurshn / SVGKFastImageViewSUI.swift
Created June 29, 2020 07:24
Using SVGKit in Swift UI
import SwiftUI
import SVGKit
struct SVGKFastImageViewSUI:UIViewRepresentable
{
@Binding var url:URL
@Binding var size:CGSize
func makeUIView(context: Context) -> SVGKFastImageView {
@ozgurshn
ozgurshn / SwiftUIPaywall.swift
Last active March 9, 2023 08:46
Swift UI Wrapper for RevenueCat's Swift Paywall
//
// SwiftUIPaywall.swift
// PhotoText
//
// Created by Ozgur Sahin on 8/27/20.
// Copyright © 2020 com.ozgur. All rights reserved.
//
import SwiftUI
import Purchases
@ozgurshn
ozgurshn / scannerterm.md
Created December 6, 2022 21:16
scanner termof use

Terms & Conditions

By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You’re not allowed to copy or modify the app, any part of the app, or our trademarks in any way. You’re not allowed to attempt to extract the source code of the app, and you also shouldn’t try to translate the app into other languages or make derivative versions. The app itself, and all the trademarks, copyright, database rights, and other intellectual property rights related to it, still belong to Ozgur Sahin.

Ozgur Sahin is committed to ensuring that the app is as useful and efficient as possible. For that reason, we reserve the right to make changes to the app or to charge for its services, at any time and for any reason. We will never charge you for the app or its services without making it very clear to you exactly what you’re paying for.

The PDF scanner app stores and processes personal data that you have provided to us

Privacy Policy

Ozgur Sahin built the PDF scanner app as a Freemium app. This SERVICE is provided by Ozgur Sahin at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at PDF scanner unless otherwise defined in this Privacy Policy.

@ozgurshn
ozgurshn / compresterm.txt
Created August 29, 2022 23:29
compress term of use
Terms and Conditions Welcome to Compress Images!
These terms and conditions outline the rules and regulations for the use of Compress Images.
By using this app we assume you accept these terms and conditions. Do not continue to use Compress Images if you do not agree to take all of the terms and conditions stated on this page.
The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log on this website and compliant to the Company’s terms and conditions. "The Company", "Ourselves", "We", "Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the Client and ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services, in accordance with
@ozgurshn
ozgurshn / compress.txt
Last active August 29, 2022 23:26
compress Images privacy
PRIVACY NOTICE
Last updated April 29, 2022
This privacy notice for Ozgur Sahin ("Company," "we," "us," or "our"), describes how and why we might collect, store, use, and/or share ("process") your information when you use our services ("Services"), such as when you:
Download and use our mobile application (Compress Images), or any other application of ours that links to this privacy notice
@ozgurshn
ozgurshn / removeduplicateprivacy.txt
Created April 29, 2022 10:57
remove duplicate privacy
PRIVACY NOTICE
Last updated April 29, 2022
This privacy notice for Ozgur Sahin ("Company," "we," "us," or "our"), describes how and why we might collect, store, use, and/or share ("process") your information when you use our services ("Services"), such as when you:
Download and use our mobile application (Remove Duplicate Photos Cleanup), or any other application of ours that links to this privacy notice
@ozgurshn
ozgurshn / rewardedad.swift
Created April 6, 2022 07:22
SwiftUI integration for Rewarded Google Ads
//
// RewardedAdView.swift
// ContactAppSwiftUI
//
// Created by ozgur on 4/6/22.
//
import Foundation
import SwiftUI
import GoogleMobileAds
@ozgurshn
ozgurshn / termofusephotocleaner.md
Created March 31, 2022 19:29
TermsOfUse Photo Cleaner

Terms and Conditions Welcome to Photo Cleaner!

These terms and conditions outline the rules and regulations for the use of Photo Cleaner.

By using this app we assume you accept these terms and conditions. Do not continue to use Photo Cleaner if you do not agree to take all of the terms and conditions stated on this page.

The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log on this website and compliant to the Company’s terms and conditions. "The Company", "Ourselves", "We", "Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the Client and ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services, in accordance with and s