-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemoViewController.swift
More file actions
44 lines (34 loc) · 1.19 KB
/
DemoViewController.swift
File metadata and controls
44 lines (34 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// DemoViewController.swift
// StringFormat
//
// Created by coderyi on 2020/11/28.
//
import UIKit
class DemoViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
view.backgroundColor = UIColor(white: 1, alpha: 1)
print(StringFormat.stringForDeviceType())
print(StringFormat.normalizeArabicNumeralString("12", type: .arabic))
print(StringFormat.stringForDuration(122))
print(StringFormat.isValidUrl("https://github.com"))
var test: String = "hello"
print(test)
test = test.rightJustified(width: 6)
print(test)
let test1: String = "hello"
print(test1.persistentHashValue)
let test2: String = "https://github.com"
print(test2.isWebLink)
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}