docs: update docs

This commit is contained in:
Ivan Smolin 2023-10-09 23:30:37 +03:00
parent 2bf1fc052a
commit 90cd941eff
2 changed files with 8 additions and 8 deletions

View File

@ -20,7 +20,7 @@ solidFillBackground.apply(to: genericView)
Nef.Playground.liveView(genericView)
/*
/*:
## UIViewGradientBackground - градиентный фон
Для задания градиентного фона необходимо определить GradientValues и применить фон в UIView:
@ -48,7 +48,7 @@ gradientView.layer.round(corners: .allCorners, radius: 20)
Nef.Playground.liveView(gradientView)
/*
/*:
### Использование внутри кастомной view
Также возможно использование градиентного фона внутри кастомной view с более точным контролем над обновлением состояния

View File

@ -19,13 +19,13 @@ let genericView = UIView(frame: viewFrame)
solidFillBackground.apply(to: genericView)
Nef.Playground.liveView(genericView)
```
/*
## UIViewGradientBackground - градиентный фон
## UIViewGradientBackground - градиентный фон
Для задания градиентного фона необходимо определить GradientValues и применить фон в UIView:
*/
```swift
let gradientView = UIView(frame: viewFrame)
let gradientColorStart = UIColor(red: 0.8, green: 0.74, blue: 1, alpha: 1).cgColor
@ -47,13 +47,13 @@ gradientBackground.apply(to: gradientView)
gradientView.layer.round(corners: .allCorners, radius: 20)
Nef.Playground.liveView(gradientView)
```
/*
### Использование внутри кастомной view
### Использование внутри кастомной view
Также возможно использование градиентного фона внутри кастомной view с более точным контролем над обновлением состояния
*/
```swift
final class GradientView: BaseInitializableView {
var gradientBackground = UIViewGradientBackground(observeViewBoundsChange: false) {
willSet {