Skip to content

Instantly share code, notes, and snippets.

View GrigoriiVakhmistrov's full-sized avatar
🙃

Grigorii Vakhmistrov GrigoriiVakhmistrov

🙃
View GitHub Profile
@GrigoriiVakhmistrov
GrigoriiVakhmistrov / AsyncTestingPrimer.m
Created May 21, 2020 14:09 — forked from theothertomelliott/AsyncTestingPrimer.m
A primer for testing asynchronous calls with XCTest in Objective-C
#import <XCTest/XCTest.h>
@interface AsyncTestingPrimer : XCTestCase
@end
@implementation AsyncTestingPrimer
/*
* This is how not to test async calls
@GrigoriiVakhmistrov
GrigoriiVakhmistrov / CardBaseReportDetailView.xaml
Created January 23, 2020 13:08
Xamarin.Forms UI Controls - Building the Logify Client App (Part 6) - ReportsDetailPage and templates
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Logify.Mobile.Views.ReportDetailTemplates.CardBaseReportDetailView"
CompressedLayout.IsHeadless="True">
<ContentView.Content>
<AbsoluteLayout
Padding="5,0"
CompressedLayout.IsHeadless="True">
<Frame
@GrigoriiVakhmistrov
GrigoriiVakhmistrov / DrawerReportsFilterView.xaml
Created November 12, 2019 12:27
Xamarin.Forms UI Controls - Building the Logify Client App (Part 5) - DrawerReportsFilterView.xaml and ReportsFilterView.xaml
<?xml version="1.0" encoding="UTF-8"?>
<dxn:DrawerPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:dxn="clr-namespace:DevExpress.XamarinForms.Navigation;assembly=DevExpress.XamarinForms.Navigation"
xmlns:views="clr-namespace:Logify.Views"
xmlns:editors="clr-namespace:DevExpress.XamarinForms.Editors;assembly=DevExpress.XamarinForms.Editors"
BackgroundColor="{DynamicResource BackgroundThemeColor}"
DrawerPosition="Right"
DrawerBehavior="Push"
DrawerWidth="0.9*"
@GrigoriiVakhmistrov
GrigoriiVakhmistrov / MainPage.xaml
Last active November 13, 2019 12:13
Xamarin.Forms UI Controls - Building the Logify Client App (Part 4) - MainPage.xaml
<?xml version="1.0" encoding="UTF-8"?>
<dxn:TabPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:dxn="clr-namespace:DevExpress.XamarinForms.Navigation;assembly=DevExpress.XamarinForms.Navigation"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
xmlns:views="clr-namespace:Logify.Views"
x:Class="Logify.Views.MainPage"
ios:Page.UseSafeArea="true"
IsSelectedItemIndicatorVisible="False"
NavigationPage.HasNavigationBar="False"
@GrigoriiVakhmistrov
GrigoriiVakhmistrov / ReportViewModel.cs
Last active November 13, 2019 12:11
Xamarin.Forms UI Controls - Building the Logify Client App (Part 3) - ReportsView.xaml and ReportViewModel.cs
using System;
using System.Text;
using System.Threading.Tasks;
using Logify.Models;
using Logify.Services;
using Xamarin.Forms;
namespace Logify.ViewModels {
public class ReportViewModel : NotificationObject {
public Report Report { get; private set; }