この PR で実現したいことを記載してください
この PR でやったことを記載してください
#!/bin/sh | |
# DEVELOPMENT / STAGING / PRODUCTION | |
export ENVIRONMENT=PRODUCTION | |
export DISPLAY_NAME=Sample | |
export BUNDLE_IDENTIFIER=com.example.sample | |
export PROVISIONING_PROFILE=Sample\ Provisioning\(Adhoc\) | |
# Generate Project | |
mint run xcodegen generate |
public extension Optional { | |
var isNil: Bool { | |
if case .some = self { | |
return false | |
} else { | |
return true | |
} | |
} | |
func compact(_ where: (Wrapped) -> Void) { |
import UIKit | |
import UIKit | |
class HogeClass { | |
let text = "weak" | |
func print(handler: @escaping (String) -> Void) { | |
DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in | |
handler(self?.text ?? "") | |
} |
import Foundation | |
import Combine | |
public extension Publishers { | |
enum Event<T, E: Error> { | |
case value(T) | |
case failure(E) | |
case finished | |
var value: T? { |
import Foundation | |
import RxSwift | |
import RxCocoa | |
@propertyWrapper | |
struct WrappedPublishRelay<Value> { | |
private let value: AnyObserver<Value> | |
private let observable: Observable<Value> | |
init(_ relay: PublishRelay<Value> = .init()) { |
public class MyExtension<T> { | |
let obj: T | |
public init(base: T) { | |
self.obj = base | |
} | |
} |
extension UIColor { | |
convenience init(hex: String) { | |
let hexStr = hex.lowercased().replacingOccurrences(of: "0x", with: "") | |
let hexmap = hexStr.map { String($0) } | |
+ Array(repeating: "0", count: max(6 - hexStr.count, 0)) | |
+ Array(repeating: "f", count: max(8 - max(6, hexStr.count), 0)) | |
let split = stride(from: 0, to: hexmap.count, by: 2) | |
.map { hexmap[$0..<$0+2] | |
.reduce(into: String()) { $0 += $1 } } |
using UnityEngine; | |
using System.Collections; | |
public class Enemy : Spaceship { | |
// ヒットポイント | |
public int hp = 1; | |
// 弾を撃つかどうか | |
public bool canShot; |