Skip to content

Instantly share code, notes, and snippets.

View omaralbeik's full-sized avatar
🐌
Slow responses

Omar Albeik omaralbeik

🐌
Slow responses
View GitHub Profile
@omaralbeik
omaralbeik / fontastic_terms.md
Created October 25, 2020 19:20
Fontastic Terms & Conditions

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 trade marks, copyright, database rights and other intellectual property rights related to it, still belong to Omar Albeik.

Omar Albeik 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 Fontastic app stores and processes personal data that you have provided to us

@omaralbeik
omaralbeik / fontastic_privacy.md
Created October 25, 2020 19:15
Fontastic Privacy Policy

Privacy Policy

Omar Albeik built the Fontastic app as a Commercial app. This SERVICE is provided by Omar Albeik 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 is accessible at Fontastic unless otherwise defined in this Privacy Policy.

Keybase proof

I hereby claim:

  • I am omaralbeik on github.
  • I am omaralbeik (https://keybase.io/omaralbeik) on keybase.
  • I have a public key ASCy5VBbV85FdmEKm0HlU2-apS7dMP3WK43RyGPjlis-nwo

To claim this, I am signing this object:

{
"categories": [{
"id": "text_editors",
"name": "Text Editors",
"order": 1
},
{
"id": "productivity",
"name": "Productivity",
"order": 2
import UIKit
protocol LoginViewDelegate: class {
func loginView(_ view: LoginView, didTapLoginButton button: UIButton)
}
class LoginView: View {
weak var delegate: LoginViewDelegate?
extension UITextField {
convenience init(
placeholder: String,
keyboardType: UIKeyboardType = .default,
isSecureTextEntry: Bool = false) {
self.init()
self.placeholder = placeholder
import UIKit
class LoginViewController: ViewController<LoginView> {
override func viewDidLoad() {
super.viewDidLoad()
customView.delegate = self
}
import UIKit
protocol LoginViewDelegate: class {
func loginView(_ view: LoginView, didTapLoginButton button: UIButton)
}
class LoginView: View {
weak var delegate: LoginViewDelegate?
@omaralbeik
omaralbeik / ViewController.swift
Last active April 7, 2018 21:45
ViewController.swift
import UIKit
class ViewController<V: View>: UIViewController {
override func loadView() {
view = V()
}
var customView: V {
return view as! V
@omaralbeik
omaralbeik / View.swift
Last active April 7, 2018 21:46
View.swift
import UIKit
class View: UIView {
override init(frame: CGRect) {
super.init(frame: frame)
setViews()
layoutViews()
}