Geen omschrijving

ActionSheetAnimator.swift 1.0KB

    // // ActionSheetAnimator.swift // PaiAi // // Created by FFIB on 2018/12/17. // Copyright © 2018 FFIB. All rights reserved. // import UIKit public struct ActionSheetAnimator: PresentAnimatable { public func contentViewAppearAnimation(duration: TimeInterval, in view: UIView) { let animation = CATransition() animation.duration = duration animation.type = .moveIn animation.subtype = .fromTop view.layer.add(animation, forKey: nil) } public func contentViewDisappearAnimation(duration: TimeInterval, in view: UIView) { let fromValue = view.layer.position.y let toValue = fromValue + view.bounds.height let animation = CABasicAnimation(keyPath: "position.y") animation.toValue = toValue animation.duration = duration animation.fromValue = fromValue animation.isRemovedOnCompletion = false animation.fillMode = .forwards view.layer.add(animation, forKey: nil) } }
pai2 - Gogs: Go Git Service

拍爱

0001_initial.py 1.7KB

    # -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-05-30 03:09 from __future__ import unicode_literals from django.db import migrations, models import django_models_ext.fileext import shortuuidfield.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MchLogInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.BooleanField(db_index=True, default=True, help_text='Status', verbose_name='status')), ('created_at', models.DateTimeField(auto_now_add=True, help_text='Create Time', verbose_name='created_at')), ('updated_at', models.DateTimeField(auto_now=True, help_text='Update Time', verbose_name='updated_at')), ('log_id', shortuuidfield.fields.ShortUUIDField(blank=True, db_index=True, editable=False, help_text='\u65e5\u5fd7\u552f\u4e00\u6807\u8bc6', max_length=22)), ('log_file', models.FileField(blank=True, help_text='\u65e5\u5fd7\u6587\u4ef6', null=True, upload_to=django_models_ext.fileext.upload_path, verbose_name='log_file')), ('operator_id', shortuuidfield.fields.ShortUUIDField(blank=True, db_index=True, editable=False, help_text='\u64cd\u4f5c\u5458\u552f\u4e00\u6807\u8bc6', max_length=22, null=True)), ('app_version', models.IntegerField(db_index=True, default=0, help_text='APP \u7248\u672c\u53f7', verbose_name='app_version')), ], options={ 'verbose_name': 'mchloginfo', 'verbose_name_plural': 'mchloginfo', }, ), ]