hmhv

MobSの紹介

iOS Swift MobS
MobSとはMobSはMobX, RxSwift, Combineからインスピレーションを受け、SIMPLE & SAFEを目指したSwift製リアクティブライブラリです。   MobSの対象ユーザ RxSwiftは強すぎて息が苦しい人 SwiftUI+Combineのみで開発を進め ...
Read more

MobS 소개

iOS Swift MobS
MobS란?MobS는 MobX, RxSwift, Combine로부터 인스피레이션을 얻은、SIMPLE & SAFE을 목표로 하는 Swift 리엑티브 라이프러리 입니다.   MobS의 대상 유저 RxSwift의 강력함에 좌절한 경험이 있으신 분 SwiftUI ...
Read more

AssociatedObjectOwnerでobjc_g(s)etAssociatedObjectを利用

iOS Swift AssociatedObjectOwner objc_getAssociatedObject objc_setAssociatedObject
AssociatedObjectOwnerの利用class TestClass { } extension TestClass: AssociatedObjectOwner { private static var test1Key = 0 ...
Read more

flutterでiosのtoday-extensionを作って見る

iOS Flutter Today-Extension
以下の方法はFlutter 1.17以上では動かなくなりました。 1. Flutterプロジェクトを新規作成 2. ビルドして確認AndroidStudioでビルドして確認 Xcodeでビルドして確認ios/Runner.xcworkspaceを開いて 3. Today Extenstio ...
Read more

Soft-UI(Neumorphism)をSwiftで作って見る

iOS Soft-UI Neumorphism
1. Soft-UI(Neumorphism)とはNew skeuomorphismというUI designの新しいトレンドっぽいSoft-UI(Neumorphism) 2. コード実装基本凸を表示するためにOuter Shadowを2つ、凹を表示するためにInner Shadowを2 ...
Read more

Sign in with Apple実装

iOS Sign in with Apple
1. アプリのcapabilityでSign in with Apple を選択 Xcodeで選択 Apple Developerサイトで選択 2. コード実装 Sign in with Apple用ボタン&ハンドラ作成 func setupProviderLoginView() ...
Read more

iosのAVPlayerでlive動画を最新に維持する方法

iOS AVPlayer
AVPlayer のautomaticallyWaitsToMinimizeStallingをNOにしても通信環境などによっては遅延が発生して再生される。そのときは直接seekToTimeで最新にする double time = MAXFLOAT; [player seekToTi ...
Read more

UITextViewタップ時にlinkかの確認

iOS UITextView
UITextViewでのタップがattributedTextでNSLinkAttributeNameを指定したリンク文のタップか確認 - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)eve ...
Read more

UITextViewのDragを無効にする

iOS UITextView UITextDragDelegate
UITextViewのUITextDragDelegateのメッソド[textDraggableView: textDraggableView: itemsForDrag:dragRequest]で空配列を返すiOS10以下も対応中なら@available(iOS 11.0, *), NS_ ...
Read more

Crashlyticsへの追加情報

iOS Crashlytics
Crashlyticsは入れておくだけでクラッシュ時のコールスタックが表示されるので調査に便利また追加情報も送信できる仕組みもある。 1. ユーザ情報を送る#import <Crashlytics/Crashlytics.h> - (void)testMethod2 ...
Read more
Prev Next