Skip to content

Instantly share code, notes, and snippets.

View vialyx's full-sized avatar
🎯
Focusing

Maxim Vialyx vialyx

🎯
Focusing
View GitHub Profile
pod trunk register [email protected] 'Your Name' --description='macbook pro'
pod trunk push CactusKeyboard.podspec
Updating spec repo `master`
CocoaPods 1.4.0 is available.
To update use: `gem install cocoapods`
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.4.0
Validating podspec
-> CactusKeyboard (1.0.0)
let userIdentifier = "c264f544-12f7-11e8-b642-0ed5f89f718b"
var userName = "Maxim Vialyx"
let height = 300.0, width = 120.0
var firstName = "Maxim", lastName = "Vialyx"
protocol NameType {
var fullName: String { get }
}
struct User: NameType {
var fullName: String
var note = ""
}
let 🌎 = 180
let 你好 = "你好世界"
let ❎ = "negativeCrossMark"
let age = 27
print("User age is: \(age)")
print("User age is: " + String(age))
print(String(format: "User age is: %d", age))
let note: String? = ""
print("User note: \(String(describing: note))")
protocol AssestType {
var assets: [Any] { get }
func downloadAssest()
}
struct Event {
var priority: Float = 0 // This value used for positioning in EventsList. ASC sort type.
var assets: [Any] = []
let x = 40.0; let y = 20.0; print("(x, y): (\(x),\(y)")
let minUInt8Value = UInt8.min // minUInt8Value is equal to 0, and is of type UInt8
let maxUInt8Value = UInt8.max // maxUInt8Value is equal to 255, and is of type UInt8
let minInt64Value = Int64.min
let maxInt64Value = Int64.max