This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
// TEST MODEL HERE | |
struct TestModel: Codable { | |
let name: String | |
let ages: [String] | |
enum CodingKeys: String, CodingKey { | |
case name = "nome" | |
case ages = "idades" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
struct MyModel: Decodable { | |
let name: String | |
} | |
struct MyOtherModel: Decodable { | |
let otherName: String | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The list of supported tools | |
$ git mergetool --tool-help | |
Setting kdiff3 as mergetool tool | |
$ git config --global merge.tool kdiff3 | |
In case you want to config diff.tool | |
$ git config --global diff.tool kdiff3 | |
If kdiff3 is not in your PATH environment also do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git 2.11 and newer | |
git clean -d -fx . | |
older git | |
git clean -d -fx "" | |
-x means ignored files are also removed as well as files unknown to git. | |
-d means remove untracked directories in addition to untracked files. | |
-f is required to force it to run. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- First of all, you have to run your app on the simulator. | |
2- Then, open the terminal | |
3- Now, you have to run the command you desire: | |
- Screenshot: xcrun simctl io booted screenshot | |
- Video: xcrun simctl io booted recordVideo <filename>.<file extension>. | |
For example: xcrun simctl io booted recordVideo appvideo.mov | |
4- Press cntrl + c to stop recording the video. |