Commit d7bea33c by Daniel Dahan

development: upadted to latest Xcode 8.1

parent 3b5e5a0b
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
......
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0800"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
......
......@@ -220,8 +220,8 @@ public class Grid {
return
}
var n: Int = 0
var i: Int = 0
var n = 0
var i = 0
for v in views {
guard let canvas = context else {
......
......@@ -68,14 +68,14 @@ open class Menu: View {
/// The space between views.
open var interimSpace: InterimSpace = 0 {
didSet {
reload()
layoutSubviews()
}
}
/// The direction in which the animation opens the menu.
open var direction = MenuDirection.up {
didSet {
reload()
layoutSubviews()
}
}
......@@ -93,7 +93,7 @@ open class Menu: View {
addSubview(v)
}
reload()
layoutSubviews()
}
}
......@@ -142,10 +142,15 @@ open class Menu: View {
interimSpacePreset = .interimSpace6
}
open override func layoutSubviews() {
super.layoutSubviews()
reload()
}
/// Reload the view layout.
open func reload() {
isOpened = false
layoutButtons()
layoutViews()
}
/**
......@@ -577,7 +582,7 @@ open class Menu: View {
}
/// Layout the views.
private func layoutButtons() {
private func layoutViews() {
guard let base = views.first else {
return
}
......
......@@ -114,7 +114,7 @@ open class PageTabBarController: RootController {
open internal(set) var isTabSelectedAnimation = false
/// The currently selected UIViewController.
open internal(set) var selectedIndex: Int = 0
open internal(set) var selectedIndex = 0
/// PageTabBar alignment setting.
open var pageTabBarAlignment = PageTabBarAlignment.bottom
......
......@@ -280,7 +280,7 @@ extension PhotoLibrary {
/// PHCollectionList.
extension PhotoLibrary {
/**
A PHAssetCollectionTypeMoment collection type will be contained
A PHAssetCollectionMoment collection type will be contained
by a PHCollectionListSubtypeMomentListCluster and a
PHCollectionListSubtypeMomentListYear. Non-moment PHAssetCollections
will only be contained by a single collection list.
......@@ -400,7 +400,7 @@ extension PhotoLibrary {
/**
Fetch asset collections of a single type and subtype provided
(use PHAssetCollectionSubtypeAny to match all subtypes).
- Parameter with type: A PHAssetCollectionType.
- Parameter with type: A PHAssetCollection.
- Parameter subtype: A PHAssetCollectionSubtype.
- Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block.
......@@ -413,7 +413,7 @@ extension PhotoLibrary {
/**
Smart Albums are not supported, only Albums and Moments.
- Parameter asset: A PHAsset.
- Parameter with type: A PHAssetCollectionType.
- Parameter with type: A PHAssetCollection.
- Parameter options: An optional PHFetchOptions object.
- Parameter completion: A completion block.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment