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:
\w - matches an Unicode word character. That's any letter, uppercase or lowercase, numbers, and the underscore character. In "new-releases-204", \w would match each of the letters in "new" and "releases" and the numbers 2, 0, and 4. It wouldn't match the hyphens. | |
\W - is the opposite to \w and matches anything that isn't an Unicode word character. In "new-releases-204", \W would only match the hyphens. | |
\s - matches whitespace, so spaces, tabs, newlines, etc. | |
\S - matches everything that isn't whitespace. | |
\d - is how we match any number from 0 to 9 | |
\D - matches anything that isn't a number. | |
\b - matches word boundaries. What's a word boundary? It's the edges of word, defined by white space or the edges of the string. | |
\B - matches anything that isn't the edges of a word. | |
\w{3} - matches any three word characters in a row. |
import UIKit | |
class View: UIView { | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
setViews() | |
layoutViews() | |
} |
import UIKit | |
class ViewController<V: View>: UIViewController { | |
override func loadView() { | |
view = V() | |
} | |
var customView: V { | |
return view as! V |
import UIKit | |
protocol LoginViewDelegate: class { | |
func loginView(_ view: LoginView, didTapLoginButton button: UIButton) | |
} | |
class LoginView: View { | |
weak var delegate: LoginViewDelegate? |
import UIKit | |
class LoginViewController: ViewController<LoginView> { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
customView.delegate = self | |
} |
extension UITextField { | |
convenience init( | |
placeholder: String, | |
keyboardType: UIKeyboardType = .default, | |
isSecureTextEntry: Bool = false) { | |
self.init() | |
self.placeholder = placeholder |
import UIKit | |
protocol LoginViewDelegate: class { | |
func loginView(_ view: LoginView, didTapLoginButton button: UIButton) | |
} | |
class LoginView: View { | |
weak var delegate: LoginViewDelegate? |
{ | |
"categories": [{ | |
"id": "text_editors", | |
"name": "Text Editors", | |
"order": 1 | |
}, | |
{ | |
"id": "productivity", | |
"name": "Productivity", | |
"order": 2 |
I hereby claim:
To claim this, I am signing this object:
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.