From b97ea5bc8fad7a715fee7f028a5ee68e9204a03c Mon Sep 17 00:00:00 2001 From: Nikita Semenov Date: Mon, 3 Jul 2023 10:17:47 +0300 Subject: [PATCH] docs: update appearance of view controller in documentation --- .../BottomSheet/BaseModalViewController.swift | 5 +---- .../BottomSheet/BaseModalWrapperViewController.swift | 12 ------------ .../TIBottomSheet.xcplaygroundpage/Contents.swift | 3 ++- docs/tibottomsheet/tibottomsheet.md | 3 ++- 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/TIBottomSheet/Sources/BottomSheet/BaseModalViewController.swift b/TIBottomSheet/Sources/BottomSheet/BaseModalViewController.swift index 9514e417..aa71b815 100644 --- a/TIBottomSheet/Sources/BottomSheet/BaseModalViewController.swift +++ b/TIBottomSheet/Sources/BottomSheet/BaseModalViewController.swift @@ -198,11 +198,8 @@ open class BaseModalViewController UIView { diff --git a/TIBottomSheet/TIBottomSheet.app/Contents/MacOS/TIBottomSheet.playground/Pages/TIBottomSheet.xcplaygroundpage/Contents.swift b/TIBottomSheet/TIBottomSheet.app/Contents/MacOS/TIBottomSheet.playground/Pages/TIBottomSheet.xcplaygroundpage/Contents.swift index 99f12ee4..ee0a5ab1 100644 --- a/TIBottomSheet/TIBottomSheet.app/Contents/MacOS/TIBottomSheet.playground/Pages/TIBottomSheet.xcplaygroundpage/Contents.swift +++ b/TIBottomSheet/TIBottomSheet.app/Contents/MacOS/TIBottomSheet.playground/Pages/TIBottomSheet.xcplaygroundpage/Contents.swift @@ -53,9 +53,10 @@ class CustomViewController: BaseModalViewController { appearance.dragViewState = .presented(.defaultAppearance) appearance.headerViewState = .presented(.make { + $0.layout.size = .fixedHeight(52) $0.backgroundColor = .white $0.contentViewState = .buttonLeft(.init(titles: [.normal: "Close"], - appearance: [.normal: .init(backgroundColor: .white)])) + appearance: [.normal: .init(backgroundColor: .blue)])) }) return appearance diff --git a/docs/tibottomsheet/tibottomsheet.md b/docs/tibottomsheet/tibottomsheet.md index f04a13db..d8114635 100644 --- a/docs/tibottomsheet/tibottomsheet.md +++ b/docs/tibottomsheet/tibottomsheet.md @@ -55,9 +55,10 @@ class CustomViewController: BaseModalViewController { appearance.dragViewState = .presented(.defaultAppearance) appearance.headerViewState = .presented(.make { + $0.layout.size = .fixedHeight(52) $0.backgroundColor = .white $0.contentViewState = .buttonLeft(.init(titles: [.normal: "Close"], - appearance: [.normal: .init(backgroundColor: .white)])) + appearance: [.normal: .init(backgroundColor: .blue)])) }) return appearance