In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
| cat /etc/*-release |
| // This ensures that the automaticallyAdjustsScrollViewInsets magic works | |
| // On our newly added view controller as well. | |
| // This triggers _layoutViewController which then triggers | |
| // _computeAndApplyScrollContentInsetDeltaForViewController: | |
| // which finally updates our content inset of the scroll view (if any) | |
| // rdar://19053416 | |
| [self.navigationController.view setNeedsLayout]; |
| override func draw(_ rect: CGRect) { | |
| UIColor.white.setFill() | |
| let minX: CGFloat = 0 | |
| let maxX = rect.width | |
| let maxY = rect.height | |
| let midX = rect.midX | |
| let circleRadius: CGFloat = 45 | |
| let roundingRadius: CGFloat = 6 |