swift

Error [Nskeyedunarchiver Validateallowedclass:Forkey:] Solution

## problem The storage path is: ``` lazy var filePath:String = {         let path =  NSSe…

TwoPunch created at Jan. 1, 2022, 9:43 a.m.

Swift Real-Time Monitoring Of Network Status

## 1) With the help of Alamofire * real-time * Can be used globally * Protocol-oriented …

TwoPunch created at Nov. 15, 2021, 1:30 p.m.

(Swift) Multi-Thread-Gcd

## 1)DispatchGroup() ``` let taskQueue = DispatchQueue.global() let taskGroup = DispatchGroup(…

TwoPunch created at Nov. 14, 2021, 2:48 p.m.

(Swift) Handling The Part Of The Subview Beyond The Parent View, Still Clickable

## 1) Problem scenario As shown in the figure below, the yellow view is the parent view, and the…

TwoPunch created at Nov. 14, 2021, 2:46 p.m.

(Swift) Compare Whether Two Pictures Are Equal

## solution ``` extension UIImage { func isEqualToImage(_ image: UIImage) -> Bool { …

TwoPunch created at Nov. 14, 2021, 2:44 p.m.

(Swift) Generate Random Verification Code

## 1) Usage scenario * Mostly used for card script verification; * Support background color…

TwoPunch created at Nov. 14, 2021, 2:42 p.m.

(Swift) Swipe Left And Right To Zoom The View (Large In The Middle And Small On Both Sides)

## 1) Usage scenario * Mostly used for photo display, slide left and right to show zoom effect…

TwoPunch created at Nov. 14, 2021, 2:38 p.m.

(Swift) Loading Loading Circle View

## 1) Usage scenario * Mostly used for network requests to load and rotate; * Support rotat…

TwoPunch created at Nov. 14, 2021, 2:34 p.m.

Include Of Non-Modular Header Inside Framework Module

## description **Usage scenario**: **macOS** framework Swift language, add third-party libraries…

robot18 created at July 11, 2021, 3 p.m.