Logo
Explore Help
Sign In
rock-n-code/deep-linking-sample
rock-n-code/deep-linking-sample
1
0
Fork 0
You've already forked deep-linking-sample
Code Pull Requests Releases 2 Wiki Activity
deep-linking-sample/Apps/Wikipedia/WMF Framework/CGRect+Layout.swift

11 lines
340 B
Swift
Raw Normal View History

[Setup] Basic project structure (#1) This PR contains all the work related to setting up this project as required to implement the [Assignment](https://repo.rock-n-code.com/rock-n-code/deep-linking-assignment/wiki/Assignment) on top, as intended. To summarise this work: - [x] created a new **Xcode** project; - [x] cloned the `Wikipedia` app and inserted it into the **Xcode** project; - [x] created the `Locations` app and also, its `Libraries` package; - [x] created the `Shared` package to share dependencies between the apps; - [x] added a `Makefile` file and implemented some **environment** and **help** commands. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: https://repo.rock-n-code.com/rock-n-code/deep-linking-assignment/pulls/1
2023-04-08 18:37:13 +00:00
extension CGRect {
// Height required to layout this rect. Returns 0 if rect.height is 0. Returns height plus spacing otherwise.
public func layoutHeight(with spacing: CGFloat) -> CGFloat {
return height > 0 ? height + spacing : 0
}
public var center: CGPoint {
return CGPoint(x: midX, y: midY)
}
}
Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 91ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API