This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <CollectionView | |
| x:Name="PhotoCollectionView" | |
| ItemsSource="{Binding Photos}" | |
| SelectionMode="None"> | |
| <CollectionView.ItemsLayout> | |
| <GridItemsLayout Orientation="Vertical" Span="3" /> | |
| </CollectionView.ItemsLayout> | |
| <CollectionView.ItemTemplate> | |
| <DataTemplate> | |
| <Frame Padding="5"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Unity.Mathematics; | |
| public static class EasingFunctions | |
| { | |
| public static float EaseInSine(float t) | |
| { | |
| return 1 - math.cos(t * math.PI / 2); | |
| } | |
| public static float EaseOutSine(float t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DisplaySynchronizedAnimator | |
| { | |
| private CADisplayLink animatorLoop; | |
| private bool isFirstTick = true; | |
| private double previousTickTime; | |
| private double deltaTime; | |
| private IDictionary<string, Action<double>> updateSubscribers = | |
| new ConcurrentDictionary<string, Action<double>>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using static LayoutConstraintExtensions; | |
| public class ConstraintsBuilder | |
| { | |
| private IList<NSLayoutConstraint> constraints = new List<NSLayoutConstraint>(); | |
| private UIView constrainsParent; | |
| public ConstraintsBuilder(UIView constrainsParent) | |
| { | |
| this.constrainsParent = constrainsParent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class NaiveLinearNumberAnimator | |
| { | |
| private double durationSeconds; | |
| private double fromValue; | |
| private double toValue; | |
| private double secondsFromStart; | |
| private double previousTimeStamp; | |
| private bool isFirstTimeStamp = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void AddViewControllerAsChild(UIViewController child, UIViewController parent) | |
| { | |
| child.WillMoveToParentViewController(parent); | |
| parent.AddChildViewController(child); | |
| parent.View.AddSubview(child.View); | |
| child.DidMoveToParentViewController(parent); | |
| } | |
| private void RemoveChildViewController(UIViewController child) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void AddViewControllerAsChild(UIViewController child, UIViewController parent) { child.WillMoveToParentViewController(parent); parent.AddChildViewController(child); parent.View.AddSubview(child.View); child.DidMoveToParentViewController(parent); } private void RemoveChildViewController(UIViewController child) { child.WillMoveToParentViewController(null); child.RemoveFromParentViewController(); child.View.RemoveFromSuperview(); child.DidMoveToParentViewController(null); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:local="http://schemas.android.com/apk/res-auto" | |
| android:orientation="vertical" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" > | |
| <TextView android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:text="blank" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:local="http://schemas.android.com/apk/res-auto" | |
| android:orientation="vertical" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent"> | |
| <Button | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:text="Pull Data" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import Security | |
| class ViewController: UIViewController { | |
| private let statusLabel = UILabel(frame: CGRect(x: 20, y: 20, width: 100, height: 25)) | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| initLabel() |
NewerOlder