One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
| let state = [ "AK - Alaska", | |
| "AL - Alabama", | |
| "AR - Arkansas", | |
| "AS - American Samoa", | |
| "AZ - Arizona", | |
| "CA - California", | |
| "CO - Colorado", | |
| "CT - Connecticut", | |
| "DC - District of Columbia", | |
| "DE - Delaware", |
| let countries = [ | |
| "AF - Afghanistan", | |
| "AX - Aland Islands", | |
| "AL - Albania", | |
| "DZ - Algeria", | |
| "AS - American Samoa", | |
| "AD - Andorra", | |
| "AO - Angola", | |
| "AI - Anguilla", | |
| "AQ - Antarctica", |
| class ArrayImpl<T> { | |
| var space: Int | |
| var count: Int | |
| var ptr: UnsafeMutablePointer<T> | |
| init(count: Int = 0, ptr: UnsafeMutablePointer<T> = nil) { | |
| self.count = count | |
| self.space = count | |
| extension UIView { | |
| func height(constant: CGFloat) { | |
| setConstraint(value: constant, attribute: .height) | |
| } | |
| func width(constant: CGFloat) { | |
| setConstraint(value: constant, attribute: .width) | |
| } | |
| private func removeConstraint(attribute: NSLayoutConstraint.Attribute) { |
| enum APIError: Error, LocalizedError { | |
| case unknown, apiError(reason: String), parserError(reason: String) | |
| var errorDescription: String? { | |
| switch self { | |
| case .unknown: | |
| return "Unknown error" | |
| case .apiError(let reason), .parserError(let reason): | |
| return reason | |
| } |