Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: page custom widgets #602

Merged
merged 2 commits into from Jun 4, 2021
Merged

fix: page custom widgets #602

merged 2 commits into from Jun 4, 2021

Conversation

luisgustavozup
Copy link
Contributor

fix: page custom widgets

@@ -12,52 +12,232 @@ description: >-

O Beagle já possui alguns widgets básicos que podem ser usados para alterar a sua aplicação UI através do backend. No entanto, você pode adicionar novos componentes para fazer as views da sua aplicação fiquem "visíveis" ao Beagle e que possam também ser usadas no backend.

## Como criar componentes \(custom views\) e widgets?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Na mesma sessão do android da criação de custom widgets, ainda existe esse titulo com a pergunta

Comment on lines +200 to +201
boxComponent.translatesAutoresizingMaskIntoConstraints = false
let beagleWrapper = AutoLayoutWrapper(view: boxComponent)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sao duas propriedades requeridas entao para funcionar o auto layout?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depende da maneira que o usuário implementa, usando o AutoLayoutWrapper é dessa maneira, usando o sizeThatFits ele coloca o método no componente customizado dele.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mas se ele for usar o AutoLayoutWrapper não seria mais facil ja adicionar essa linha para ele entao?
translatesAutoresizingMaskIntoConstraints = false

@hernandazevedozup hernandazevedozup merged commit 28ed370 into main Jun 4, 2021
@hernandazevedozup hernandazevedozup deleted the fix/custom-widgets-ios branch June 4, 2021 19:24
luismaximozup added a commit that referenced this pull request Jun 4, 2021
* fix: page custom widgets  (#602)

* fix page custom widgets

* update page custom widgets

* Revert "feat: gRPC lib and tutorials (#524)"

This reverts commit 448a117.

Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>
luismaximozup added a commit that referenced this pull request Jun 7, 2021
* hotfix: Revert 524 fix/beagle helpers page (#612)

* fix: page custom widgets  (#602)

* fix page custom widgets

* update page custom widgets

* Revert "feat: gRPC lib and tutorials (#524)"

This reverts commit 448a117.

Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>

* fix pluggin image beagle class creator (#618)

Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>
Co-authored-by: carlossteinzup <60155378+carlossteinzup@users.noreply.github.com>
carlossteinzup added a commit that referenced this pull request Jun 10, 2021
* hotfix: Revert 524 fix/beagle helpers page (#612)

* fix: page custom widgets  (#602)

* fix page custom widgets

* update page custom widgets

* Revert "feat: gRPC lib and tutorials (#524)"

This reverts commit 448a117.

Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>

* fix pluggin image beagle class creator (#618)

* Feature/react native docs v1.8 (#632)

* documentation for Beagle React Native

* Update content/en/resources/customization/beagle-for-react-native/localhost.md

Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>

* Update content/pt/resources/customization/beagle-for-react-native/localhost.md

Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>

Co-authored-by: Tiago Peres França <tiago.franca@zup.com.br>
Co-authored-by: Tiago Peres França <tiagoperesfr@gmail.com>
Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>

* fix typo (#634)

* Fixes some typos and translation error for the portuguese version of the Beagle RN documentation

* fix previous merge

Co-authored-by: Gabriel Maximo <luis.maximo@zup.com.br>
Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>
Co-authored-by: carlossteinzup <60155378+carlossteinzup@users.noreply.github.com>
Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>
adrianovieira pushed a commit to adrianovieira/beagle-docs that referenced this pull request Feb 25, 2022
* fix page custom widgets

* update page custom widgets
adrianovieira pushed a commit to adrianovieira/beagle-docs that referenced this pull request Feb 25, 2022
* hotfix: Revert 524 fix/beagle helpers page (ZupIT#612)

* fix: page custom widgets  (ZupIT#602)

* fix page custom widgets

* update page custom widgets

* Revert "feat: gRPC lib and tutorials (ZupIT#524)"

This reverts commit 448a117.

Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>

* fix pluggin image beagle class creator (ZupIT#618)

Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>
Co-authored-by: carlossteinzup <60155378+carlossteinzup@users.noreply.github.com>
adrianovieira pushed a commit to adrianovieira/beagle-docs that referenced this pull request Feb 25, 2022
* hotfix: Revert 524 fix/beagle helpers page (ZupIT#612)

* fix: page custom widgets  (ZupIT#602)

* fix page custom widgets

* update page custom widgets

* Revert "feat: gRPC lib and tutorials (ZupIT#524)"

This reverts commit 448a117.

Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>

* fix pluggin image beagle class creator (ZupIT#618)

* Feature/react native docs v1.8 (ZupIT#632)

* documentation for Beagle React Native

* Update content/en/resources/customization/beagle-for-react-native/localhost.md

Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>

* Update content/pt/resources/customization/beagle-for-react-native/localhost.md

Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>

Co-authored-by: Tiago Peres França <tiago.franca@zup.com.br>
Co-authored-by: Tiago Peres França <tiagoperesfr@gmail.com>
Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>

* fix typo (ZupIT#634)

* Fixes some typos and translation error for the portuguese version of the Beagle RN documentation

* fix previous merge

Co-authored-by: Gabriel Maximo <luis.maximo@zup.com.br>
Co-authored-by: Luis Gustavo <59032921+luisgustavozup@users.noreply.github.com>
Co-authored-by: carlossteinzup <60155378+carlossteinzup@users.noreply.github.com>
Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios Use to define specific IOS platform content
Projects
None yet
4 participants