Commit d7bea33c by Daniel Dahan

development: upadted to latest Xcode 8.1

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