Giter Site home page Giter Site logo

ioskit's Introduction

IOSKit

A declares implementation of many different classes for Xojo. This currently contains a large portion of my completed classes and will continue to grow as I create more classes. I have tried to create a demo of many of the classes, however still more do not yet have a demo.

Warning about Xojo Version

Please use this version of iOSKit if you need to build with Xojo versions later than 2020r2 (when API2.0 was introduced for iOS). If you are using an earlier version of Xojo which does not support API2.0, please use the API1-compatible branch.

Compiler errors should now be resolved, deprecation warnings will be fixed in the future

Currently implemented classes

By module they are contained in:

Foundation

  • NSArray
  • NSAttributedString
  • NSCharacterSet
  • NSData
  • NSDate
  • NSDictionary
  • NSError
  • NSIndexPath
  • NSMutableArray
  • NSMutableAttributedString
  • NSMutableDictionary
  • NSMutableSet
  • NSNumber
  • NSObject
  • NSPoint
  • NSRect
  • NSSet
  • NSSize
  • NSString
  • NSURL
  • NSUserDefaults

UIKit

  • UIActivity
  • UIActivityViewController
  • UIColor
  • UIGestureRecognizer
  • UIImagePickerController
  • UILongPressGestureRecognizer
  • UINavigationController
  • UIResponder
  • UIRotationGestureRecognizer
  • UISearchBar
  • UISearchController
  • UISwipeGestureRecognizer
  • UITapGestureRecognizer
  • UITouch
  • UIView
  • UIViewController

Extensions

  • Camera
  • EditableIOSImage
  • MFMailComposeViewController
  • MFMessageComposeViewController
  • PickerView
  • PickerViewMultiline
  • Reachability
  • ScrollView
  • SwipeView
  • UIColorPickerViewController
  • UIPickerViewDataSource
  • UIPickerViewDataSourceMultiline
  • UIStepper

CoreMotion

  • CMAccelerometerData
  • CMDeviceMotion
  • CMGyroData
  • CMLogItem
  • CMMotionManager

AVFoundation

  • AVAudioPlayer
  • AVAudioRecorder
  • AVAudioSession
  • AVAudioSessionDataSourceDescription
  • AVAudioSessionPortDescription
  • AVAudioSessionRouteDescription
  • AVCaptureConnection
  • AVCaptureDevice
  • AVCaptureDeviceFormat
  • AVCaptureDeviceInput
  • AVCaptureInput
  • AVCaptureInputPort
  • AVCaptureMetadataOutput
  • AVCaptureOutput
  • AVCaptureSession
  • AVCaptureStillImageOutput
  • AVCaptureVideoPreviewLayer
  • AVMetadataFaceObject
  • AVMetadataMachineReadableCodeObject
  • AVMetadataObject
  • AVSpeechSynthesisVoice
  • AVSpeechSynthesizer
  • AVSpeechUtterance

StoreKit

  • InAppPurchaseHelper
  • PaymentTransactionObserver
  • SKDownload
  • SKMutablePayment
  • SKPayment
  • SKPaymentQueue
  • SKPaymentTransaction
  • SKProduct
  • SKProductsRequest
  • SKProductsResponse
  • SKReceiptRefreshRequest
  • SKStoreProductViewController

JKRegex

  • RegEx
  • RegExMatch
  • RegExOptions

GameKit (Beta - Not all classes have been extensively tested, please let me know if you find any classes which do not work as expected)

  • GKAchievement
  • GKAchievementChallenge
  • GKAchievementDescription
  • GKChallenge
  • GKFriendRequestComposeViewController (and observer)
  • GKGameCenterViewController (and observer)
  • GKInvite
  • GKLeaderboard
  • GKLeaderboardSet
  • GKLocalPlayer
  • GKLocalPlayerListener
  • GKMatch
  • GKMatchmaker
  • GKMatchmakerViewController
  • GKMatchRequest
  • GKNotificationBanner
  • GKPlayer
  • GKSavedGame
  • GKScore
  • GKScoreChallenge
  • GKTurnBasedExchange
  • GKTurnBasedExchangeReply
  • GKTurnBasedMatch
  • GKTurnBasedMatchmakerViewController
  • GKTurnBasedParticipant
  • GKVoiceChat

...and more coming

Additional Useful Stuff

QRCode (module) - for reading and generating QRCodes

KeychainServices (module) - for reading and writing to the iOS Keychain using the same API as is present in Xojo Desktop

TargetClassMethodHelper (in UIKit) - For creating delegate or target objects using the ObjC Runtime library in conjunction with the BuildTargetClass method of UIKit

SmartMemoryBlock and SmartMutableMemoryBlock (in Foundation) - Useful for using UIntegers with memory blocks, pragmas are used so they work as expected on 32/64 bit

Extensions Methods (in Extensions) - Many methods which could be useful depending on your needs

Notification_Center module - allows for in app notifications to be easily posted and handled

Helpers for GameKit

AuthenticationHelper - Handles all necessary authentication and creates a notification when anything needs to happen

StandardMatchHelper (and observer) - Helps setup and run a standard match. Although you can do all of the stuff it does manually, why would you?

TurnBasedMatchHelper - Unfinished, I haven’t been able to test this one as much because making a turn based match to test with is impossible without many devices to test with. If someone figures this out and has a working example for it, please submit a pull request/PM me

AchievementAndScoreHelper - Unfinished

Notes about GameKit - before anything can be done, you MUST authenticate the player using the AuthenticationHelper class (or your own version of it). Also be sure to add GameKit to your app’s capabilities by clicking on Build Settings -> iOS -> Advanced Gear and enabling Game Center.

If there is anything in particular that you would like to see added to iOSKit, or you find any issues or incompatibilities, please PM me on the Xojo Forum and I will see what I can do!

ioskit's People

Contributors

kingj5 avatar ktekinay avatar jkleroy avatar stretch327 avatar jasontait avatar tinrocket avatar kpekarov avatar

Stargazers

Paulina Drzazga avatar Joshua Haug avatar Robin Doak avatar depths avatar  avatar Mike Cotrone avatar David Ropero avatar Vigia avatar  avatar dalu avatar Travis Hicks avatar Lutz Lesener avatar  avatar Peter Badenhorst avatar Sébastien REMY avatar  avatar Stam Kapetanakis avatar  avatar Lucian Dinu avatar Peter Baral avatar Jonathan Eisen avatar Walter Purvis avatar Greg Moore avatar  avatar Jose L Cuevas avatar  avatar John Joyce avatar R. Burke Squires avatar David Martínez avatar Tobias Bussmann avatar  avatar  avatar Anthony Papillion avatar Sky avatar  avatar Kai Liao avatar Ian M. Jones avatar Ken Hagler avatar Alexei Vinidiktov avatar  avatar  avatar Justin Elliott avatar eduo avatar Stephen Beardslee avatar Kenichi Maehashi avatar Dana Adalaide avatar

Watchers

eduo avatar Anthony Papillion avatar James Cloos avatar Carl Clarke avatar  avatar Lutz Lesener avatar Justin Elliott avatar  avatar Derk J. avatar  avatar Mike Cotrone avatar  avatar Stephen Beardslee avatar  avatar  avatar Travis Hicks avatar Valentin avatar  avatar  avatar  avatar  avatar  avatar Greg Moore avatar Sébastien REMY avatar

ioskit's Issues

UserAgent

Hello,
is there a way to assign a userAgent to iOSHTMLViewer to simulate the desktop browser?
I tried to assign it with a javascript and it works
but unfortunately when you run a new javascript in the browser I lose the userAgent assigned.
do you have any solution?

Thanks
Stefano

PickerView Default Value

I guess it`s more a feature request than a issue, but is it possible to have same functionality like the Date Picker from the IDE, to be able to load the default value if in case it was provided before.

Imagine you have the Country list and You already have in the database Italy for example but once you load the popup it will go again to - or to the first record which is quite annoying , so the idea was If the current data is there to show it on the picker as default.

Thanks again and great work.

Suggested isIPhoneX function

Similarly to isIPad function, it would be nice to have a isIPhoneX function

The following code achieves this
`

  Public Function isIPhoneX() as Boolean

  Declare Function mainScreen Lib UIKitLib selector "mainScreen" (clsRef As ptr) As ptr

  #If Target32Bit
	Return False

  #ElseIf Target64Bit
	Declare Function nativebounds Lib UIKitLib selector "nativeBounds" (obj_id As Ptr) As CGRect64
	Dim sz As CGSize64 = nativeBounds(mainScreen(NSClassFromString("UIScreen"))).rsize

	If sz.w = 1125 And sz.h = 2436 Then Return True
  #EndIf



End Function

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.