Skip to content

Commit

Permalink
Merge pull request square#456 from square/watt/caffeinated-layout/def…
Browse files Browse the repository at this point in the history
…ault-change

Set default mode to caffeinated
  • Loading branch information
watt authored May 2, 2023
2 parents 512ef4f + 523fab4 commit 6520d3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BlueprintUI/Sources/Layout/LayoutMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Foundation
/// render their contents.
///
public enum LayoutMode: Equatable {
public static var `default`: Self = .legacy {
public static var `default`: Self = .caffeinated {
didSet {
guard oldValue != .default else { return }
NotificationCenter
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Caffeinated Layout is enabled by default. You can disable it on a `BlueprintView` with the `layoutMode` property, or disable it globally by setting `LayoutMode.default`.

### Deprecated

- `ConstrainedAspectRatio` content mode `fillParent` is deprecated, due to having limited utility in Caffeinated Layout.
Expand Down

0 comments on commit 6520d3d

Please sign in to comment.