Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benoitjadinon/skiasharp-coachmarks
(wip) Skia CoachMarks for Xamarin native
https://github.com/benoitjadinon/skiasharp-coachmarks
coach-marks cross-platform onboarding skiasharp xamarin xamarin-android xamarin-ios
Last synced: 19 days ago
JSON representation
(wip) Skia CoachMarks for Xamarin native
- Host: GitHub
- URL: https://github.com/benoitjadinon/skiasharp-coachmarks
- Owner: benoitjadinon
- Created: 2018-08-13T22:42:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-26T18:35:34.000Z (over 6 years ago)
- Last Synced: 2024-11-05T13:18:11.979Z (2 months ago)
- Topics: coach-marks, cross-platform, onboarding, skiasharp, xamarin, xamarin-android, xamarin-ios
- Language: C#
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### iOS
```csharp
public override void ViewDidLayoutSubviews()
{
base.ViewDidLayoutSubviews();viewModel.CoachMarks
.Add(Button, viewModel.SomeText)
.Show(this);
}
```### Android
```csharp
public override void OnWindowFocusChanged(bool hasFocus)
{
base.OnWindowFocusChanged(hasFocus);viewModel.CoachMarks
.Add(button, viewModel.SomeText)
.Show(this);
}
```### ViewModel
```csharp
public CoachMarksInstance CoachMarks { get; }
= new CoachMarks()
.Create(bgColor:0x88000000);public string SomeText { get; } = "test";
// also, to avoid duplicating text references inside views,
// use the extension method inside view controllers
// viewModel.AddButton(myButton.WindowPosition());
// it makes the view code copy-pastable through platforms
public void AddButton(SKRect rect)
=> CoachMarks.Add(rect, SomeText);```