Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Commit 8be0e66

Browse files
hqin-workstaguer
authored andcommitted
Default to the first primary layout's flexibility for OverlayLayout (#240)
1 parent aa876d5 commit 8be0e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ObjCSupport/LOKOverlayLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import Foundation
3535
backgroundLayouts: backgroundLayouts?.map { $0.unwrapped } ?? [],
3636
overlayLayouts: overlayLayouts?.map { $0.unwrapped } ?? [],
3737
alignment: self.alignment.alignment,
38-
flexibility: flexibility?.flexibility ?? .flexible,
38+
flexibility: flexibility?.flexibility ?? primaryLayouts.first?.flexibility.flexibility ?? .flexible,
3939
viewReuseId: viewReuseId,
4040
viewClass: self.viewClass,
4141
config: self.configure))

0 commit comments

Comments
 (0)